Module: Solid::Commands
- Defined in:
- lib/solid/commands.rb
Class Method Summary collapse
Class Method Details
.deploy(dna_file) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/solid/commands.rb', line 7 def deploy(dna_file) dna = Crack::JSON.parse(get_dna(dna_file)) dna["servers"].each do |s| run(s, dna) end end |
.logs ⇒ Object
23 24 25 |
# File 'lib/solid/commands.rb', line 23 def logs puts "Comming Soon!" end |
.rollback(dna_file) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/solid/commands.rb', line 14 def rollback(dna_file) dna = Crack::JSON.parse(get_dna(dna_file)) dna.merge!(:action => 'rollback') dna["servers"].each do |s| run(s, dna) end end |