Module: Vagabond::Actions::Destroy

Defined in:
lib/vagabond/actions/destroy.rb

Instance Method Summary collapse

Instance Method Details

#_destroyObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/vagabond/actions/destroy.rb', line 5

def _destroy
  name_required!
  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