Class: AwsUtils::ElbLs
- Inherits:
-
Object
- Object
- AwsUtils::ElbLs
- Defined in:
- lib/awsutils/elbls.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
8 9 10 |
# File 'lib/awsutils/elbls.rb', line 8 def args @args end |
Instance Method Details
#run(args) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/awsutils/elbls.rb', line 10 def run(args) @args = args if args.empty? puts connection.load_balancers.map(&:id).sort else args.each do |lb| puts colorize_yaml(attributes(lb).to_yaml) puts '---' if args.count > 1 end end end |