-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from HappyTobi/docker_support
Docker support
- Loading branch information
Showing
19 changed files
with
503 additions
and
223 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,32 @@ | ||
package cli | ||
|
||
//Test struct for executro | ||
type FakeExecutor struct { | ||
traceLogging bool | ||
counter int | ||
argumentsOutput map[int][]string | ||
} | ||
|
||
func (tx *FakeExecutor) NewFakeExecutor() CfExecutor { | ||
return tx | ||
} | ||
|
||
func (tx *FakeExecutor) Execute(arguments []string) (err error) { | ||
tx.counter++ | ||
size := len(tx.argumentsOutput) | ||
if tx.argumentsOutput == nil { | ||
//init lazy - only for fake executor | ||
tx.argumentsOutput = map[int][]string{0: arguments} | ||
} else { | ||
tx.argumentsOutput[size] = arguments | ||
} | ||
return nil | ||
} | ||
func (tx *FakeExecutor) ExecutorCallCount() int { | ||
return tx.counter | ||
} | ||
|
||
func (tx *FakeExecutor) ExecutorArgumentsOutput() map[int][]string { | ||
return tx.argumentsOutput | ||
} | ||
|
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
Oops, something went wrong.