Class: Ruboty::Niftycloud::Actions::ComputingSecurityGroupList
- Defined in:
- lib/ruboty/niftycloud/actions/computing_security_group_list.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#accounts, #computing, #current_account, #current_region, #initialize, #rdb
Constructor Details
This class inherits a constructor from Ruboty::Niftycloud::Actions::Base
Instance Method Details
#call ⇒ Object
5 6 7 8 9 |
# File 'lib/ruboty/niftycloud/actions/computing_security_group_list.rb', line 5 def call computing.security_groups.each do |security_group| .reply("#{security_group['groupName']} #{security_group['ipPermissions'] ? security_group['ipPermissions']['item'].size : 0} #{security_group['groupStatus']} #{security_group['groupDescription']} #{security_group['availabilityZone']}") end end |