Class: Chef::Knife::OrgDelete

Inherits:
Knife
  • Object
show all
Defined in:
lib/chef/knife/org_delete.rb

Instance Method Summary collapse

Instance Method Details

#runObject



25
26
27
28
29
# File 'lib/chef/knife/org_delete.rb', line 25

def run
  org_name = @name_args[0]
  ui.confirm "Do you want to delete the organization #{org_name}"
  ui.output root_rest.delete("organizations/#{org_name}")
end