Class: Ebim::Deploy
- Inherits:
-
Object
- Object
- Ebim::Deploy
- Defined in:
- lib/ebim/deploy.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Deploy
constructor
A new instance of Deploy.
- #run ⇒ Object
Constructor Details
#initialize(args) ⇒ Deploy
Returns a new instance of Deploy.
15 16 17 18 19 20 21 22 23 |
# File 'lib/ebim/deploy.rb', line 15 def initialize(args) ebextensions_exist? @files = list_files @env = args.shift @args = args check_files_for_env end |
Class Method Details
.run(args) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/ebim/deploy.rb', line 6 def run(args) if args.length < 1 puts "Args not right" return false end new(args).run end |
Instance Method Details
#run ⇒ Object
25 26 27 28 29 |
# File 'lib/ebim/deploy.rb', line 25 def run command = "eb #{serialized_args}" puts "[ENV: #{env}] Firing: #{command}" exec(command) end |