Class: Chef::Knife::NotificationList

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

Instance Method Summary collapse

Instance Method Details

#runObject



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

def run
  validate_and_set_params

  @rest = ChefAnalytics::ServerAPI.new(analytics_server_url, fetch_token)

  notifications = @rest.get("aliases")
  output(notifications)
end