Class: Humidifier::Reservoir::CLI
- Inherits:
-
Thor
- Object
- Thor
- Humidifier::Reservoir::CLI
- Defined in:
- lib/humidifier/reservoir/cli.rb
Overview
A CLI for running commands to manipulate the stacks that Reservoir knows about.
Instance Method Summary collapse
- #change(name = nil) ⇒ Object
- #deploy(name = nil) ⇒ Object
- #display(name, pattern = nil) ⇒ Object
- #validate(name = nil) ⇒ Object
Instance Method Details
#change(name = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/humidifier/reservoir/cli.rb', line 12 def change(name = nil) stack_names = stack_names_from(name) stack_names.each do |stack_name| stack = Stack.new(stack_name) puts "Creating a changeset for #{stack.stack_name}" stack.create_change_set end end |
#deploy(name = nil) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/humidifier/reservoir/cli.rb', line 26 def deploy(name = nil) stack_names = stack_names_from(name) stack_names.each do |stack_name| stack = Stack.new(stack_name, prefix: [:prefix]) puts "Deploying #{stack.stack_name}" stack.deploy([:wait]) end end |