Class: Awful::AutoScalingNotifications

Inherits:
Cli
  • Object
show all
Defined in:
lib/awful/auto_scaling_notifications.rb

Instance Method Summary collapse

Methods inherited from Cli

#initialize

Constructor Details

This class inherits a constructor from Awful::Cli

Instance Method Details

#ls(*names) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/awful/auto_scaling_notifications.rb', line 7

def ls(*names)
  autoscaling.describe_notification_configurations(auto_scaling_group_names: names).notification_configurations.tap do |notifications|
    if options[:long]
      print_table notifications.map { |n| [n.auto_scaling_group_name, n.notification_type, n.topic_arn] }
    else
      puts notifications.map(&:notification_type)
    end
  end
end

#typesObject



18
19
20
21
22
# File 'lib/awful/auto_scaling_notifications.rb', line 18

def types
  autoscaling.describe_auto_scaling_notification_types.auto_scaling_notification_types.tap do |types|
    puts types
  end
end