Module: Vagabond::Actions::Destroy
- Defined in:
- lib/vagabond/actions/destroy.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/vagabond/actions/destroy.rb', line 4 def destroy if(lxc.exists?) ui.info "#{ui.color('Vagabond:', :bold)} Destroying node: #{ui.color(name, :red)}" do_destroy ui.info ui.color(' -> DESTROYED', :red) else ui.error "Node not created: #{name}" end end |