Class: Ebim::Runner
- Inherits:
-
Object
- Object
- Ebim::Runner
- Defined in:
- lib/ebim/runner.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(args) ⇒ Runner
Returns a new instance of Runner.
18 19 20 21 22 23 24 25 26 |
# File 'lib/ebim/runner.rb', line 18 def initialize(args) @env = args.shift @args = args @ebextensions = EB.new(env: env) @ebextensions.exist? @ebextensions.has_eb_config? @ebextensions.has_ebextension_configs? end |
Class Method Details
.run(args) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/ebim/runner.rb', line 9 def run(args) if args.length < 1 puts "Args not right" return false end new(args).run end |
Instance Method Details
#run ⇒ Object
28 29 30 31 32 33 |
# File 'lib/ebim/runner.rb', line 28 def run command_environment = CommandEnvironment.new(env: env, ebextensions: @ebextensions) command_environment.setup execute_command command_environment.teardown end |