Class: Kanagata::CLI
- Inherits:
-
Thor
- Object
- Thor
- Kanagata::CLI
- Defined in:
- lib/kanagata/cli.rb
Instance Method Summary collapse
- #destroy(target, *attributes) ⇒ Object
- #generate(target, *attributes) ⇒ Object
- #init(target = 'sample') ⇒ Object
Instance Method Details
#destroy(target, *attributes) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/kanagata/cli.rb', line 27 def destroy(target, *attributes) begin destroyer = Kanagata::Destroyer.new(target, [:config], attributes) destroyer.destroy rescue => e say(e., :red) end end |