Class: Chef::Knife::BigvServerDelete

Inherits:
Chef::Knife show all
Defined in:
lib/chef/knife/bigv_server_delete.rb

Instance Method Summary collapse

Instance Method Details

#runObject


35
36
37
38
39
40
41
42
# File 'lib/chef/knife/bigv_server_delete.rb', line 35

def run
  unless config[:server_name]
    ui.error("You have not provided an image value")
    exit 1
  end

  system("bigv vm delete -b --vm-name #{config[:server_name]}")
end