Class: Sgupdater::CLI
- Inherits:
-
Thor
- Object
- Thor
- Sgupdater::CLI
- Includes:
- Thor::Aws
- Defined in:
- lib/sgupdater/cli.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
14 15 16 |
# File 'lib/sgupdater/cli.rb', line 14 def show client.get.each {|sg| show_security_groups(sg, [:from_cidr], [:to_cidr])} end |
#update ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/sgupdater/cli.rb', line 21 def update updated = client.update if updated puts "Update success" else puts "No change" end end |