class Chef::Knife::UserInviteAdd
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/user_invite_add.rb, line 27 def run if name_args.length < 1 show_usage ui.fatal("You must specify a username.") exit 1 end users = name_args api_endpoint = "association_requests/" users.each do |u| body = { user: u } rest.post_rest(api_endpoint, body) end end