Class: Mason::CLI::Stacks
- Inherits:
-
Thor
- Object
- Thor
- Mason::CLI::Stacks
- Defined in:
- lib/mason/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create(box) ⇒ Object
- #destroy(name) ⇒ Object
- #down(name) ⇒ Object
- #run(name, *args) ⇒ Object
- #up(name) ⇒ Object
Class Method Details
.is_thor_reserved_word?(word, type) ⇒ Boolean
180 181 182 183 |
# File 'lib/mason/cli.rb', line 180 def is_thor_reserved_word?(word, type) return false if word == 'run' super end |
Instance Method Details
#create(box) ⇒ Object
190 191 192 193 194 195 |
# File 'lib/mason/cli.rb', line 190 def create(box) name = [:name] || box print "* creating stack #{name}... " Mason::Stacks.create(name, box) puts "done" end |
#destroy(name) ⇒ Object
199 200 201 202 203 |
# File 'lib/mason/cli.rb', line 199 def destroy(name) print "* destroying stack #{name}... " Mason::Stacks.destroy(name) puts "done" end |
#down(name) ⇒ Object
215 216 217 218 219 |
# File 'lib/mason/cli.rb', line 215 def down(name) print "* stopping stack #{name}..." Mason::Stacks.down(name) puts "done" end |