Class/Module Index [+]

Quicksearch

Rudy::CLI::AWS::EC2::Snapshots

Public Instance Methods

create_snapshots() click to toggle source
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 13
def create_snapshots
  snap = execute_action { Rudy::AWS::EC2::Snapshots.create(@volume.awsid) }
  print_stobject snap
end
create_snapshots_valid?() click to toggle source
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 8
def create_snapshots_valid?
  raise Drydock::ArgError.new('volume ID', @alias) unless @option.volume
  @volume = Rudy::AWS::EC2::Volumes.get(@option.volume)
  !@volume.nil?
end
destroy_snapshots() click to toggle source
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 24
def destroy_snapshots
  li "Destroying: #{@snap.awsid}"
  execute_check(:medium)
  execute_action { Rudy::AWS::EC2::Snapshots.destroy(@snap.awsid) }
end
destroy_snapshots_valid?() click to toggle source
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 18
def destroy_snapshots_valid?
  raise Drydock::ArgError.new('snapshot ID', @alias) unless @argv.snapid
  @snap = Rudy::AWS::EC2::Snapshots.get(@argv.snapid)
  raise "Snapshot #{@snap.awsid} does not exist" unless @snap
  true
end
snapshots() click to toggle source
# File lib/rudy/cli/aws/ec2/snapshots.rb, line 30
def snapshots
  snaps = Rudy::AWS::EC2::Snapshots.list || []
  print_stobjects snaps
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.