Class: Chef::Knife::RoleEdit

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

Instance Method Summary collapse

Instance Method Details

#runObject



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/chef/knife/role_edit.rb', line 32

def run
  @role_name = @name_args[0]

  if @role_name.nil?
    show_usage
    ui.fatal("You must specify a role name")
    exit 1
  end

  ui.edit_object(Chef::Role, @role_name)
end