Class: Seiton::CLI
- Inherits:
-
Thor
- Object
- Thor
- Seiton::CLI
- Defined in:
- lib/seiton/cli.rb
Instance Method Summary collapse
- #ami ⇒ Object
- #ec2_snapshot ⇒ Object
- #eip ⇒ Object
- #instance ⇒ Object
- #rds_snapshot ⇒ Object
- #sqs_queue ⇒ Object
- #version ⇒ Object
Instance Method Details
#ami ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/seiton/cli.rb', line 23 def ami unless [:before_datetime] then puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)' exit 1 end seiton = Seiton::Ec2.new seiton.ec2_image([:check], [:before_datetime], [:ignores]) end |
#ec2_snapshot ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/seiton/cli.rb', line 36 def ec2_snapshot unless [:before_datetime] then puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)' exit 1 end seiton = Seiton::Ec2.new seiton.ec2_snapshots([:check], [:before_datetime], [:ignores]) end |
#eip ⇒ Object
74 75 76 77 |
# File 'lib/seiton/cli.rb', line 74 def eip seiton = Seiton::Ec2.new seiton.eip([:check], [:ignores]) end |
#instance ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'lib/seiton/cli.rb', line 49 def instance unless [:before_datetime] then puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)' exit 1 end seiton = Seiton::Ec2.new seiton.ec2_instance([:check], [:before_datetime], [:ignores]) end |
#rds_snapshot ⇒ Object
62 63 64 65 66 67 68 69 |
# File 'lib/seiton/cli.rb', line 62 def rds_snapshot unless [:before_datetime] then puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)' exit 1 end seiton = Seiton::Rds.new seiton.rds_snapshot([:check], [:before_datetime], [:ignores]) end |