Methods
public instance
Public instance methods
create_snapshots
()
[show source]
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 13 13: def create_snapshots 14: snap = execute_action { Rudy::AWS::EC2::Snapshots.create(@volume.awsid) } 15: print_stobject snap 16: end
create_snapshots_valid?
()
[show source]
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 8 8: def create_snapshots_valid? 9: raise Drydock::ArgError.new('volume ID', @alias) unless @option.volume 10: @volume = Rudy::AWS::EC2::Volumes.get(@option.volume) 11: !@volume.nil? 12: end
destroy_snapshots
()
[show source]
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 24 24: def destroy_snapshots 25: li "Destroying: #{@snap.awsid}" 26: execute_check(:medium) 27: execute_action { Rudy::AWS::EC2::Snapshots.destroy(@snap.awsid) } 28: end
destroy_snapshots_valid?
()
[show source]
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 18 18: def destroy_snapshots_valid? 19: raise Drydock::ArgError.new('snapshot ID', @alias) unless @argv.snapid 20: @snap = Rudy::AWS::EC2::Snapshots.get(@argv.snapid) 21: raise "Snapshot #{@snap.awsid} does not exist" unless @snap 22: true 23: end
snapshots
()
[show source]
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 30 30: def snapshots 31: snaps = Rudy::AWS::EC2::Snapshots.list || [] 32: print_stobjects snaps 33: end