-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The buildpack now searches the applicatiod root for a set of files and selects one of them based off the following prioriy: `server.js > app.js > main.js > index.js`
- Loading branch information
1 parent
d4fe586
commit cd2f010
Showing
15 changed files
with
238 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package fakes | ||
|
||
import "sync" | ||
|
||
type ApplicationDetector struct { | ||
DetectCall struct { | ||
sync.Mutex | ||
CallCount int | ||
Receives struct { | ||
WorkingDir string | ||
} | ||
Returns struct { | ||
String string | ||
Error error | ||
} | ||
Stub func(string) (string, error) | ||
} | ||
} | ||
|
||
func (f *ApplicationDetector) Detect(param1 string) (string, error) { | ||
f.DetectCall.Lock() | ||
defer f.DetectCall.Unlock() | ||
f.DetectCall.CallCount++ | ||
f.DetectCall.Receives.WorkingDir = param1 | ||
if f.DetectCall.Stub != nil { | ||
return f.DetectCall.Stub(param1) | ||
} | ||
return f.DetectCall.Returns.String, f.DetectCall.Returns.Error | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.