Class: AwsCli::CLI::EC2::Ebs

Inherits:
Thor
  • Object
show all
Defined in:
lib/awscli/cli/ec2/ebs.rb

Instance Method Summary collapse

Instance Method Details

#attach_volumeObject



28
29
30
31
# File 'lib/awscli/cli/ec2/ebs.rb', line 28

def attach_volume
  create_ec2_object
  @ec2.attach_volume options
end

#copy_snapshotObject



65
66
67
68
# File 'lib/awscli/cli/ec2/ebs.rb', line 65

def copy_snapshot
  create_ec2_object
  @ec2.copy_snapshot options
end

#createObject



19
20
21
22
# File 'lib/awscli/cli/ec2/ebs.rb', line 19

def create
  create_ec2_object
  @ec2.create options
end

#create_snapshotObject



57
58
59
60
# File 'lib/awscli/cli/ec2/ebs.rb', line 57

def create_snapshot
  create_ec2_object
  @ec2.create_snapshot options
end

#deleteObject



43
44
45
46
47
# File 'lib/awscli/cli/ec2/ebs.rb', line 43

def delete
  #ask if the user is sure about deleting the volume which leads to data loss or can make a snapshot before deleting it
  create_ec2_object
  @ec2.delete_volume options
end

#delete_detachedObject



50
51
52
53
# File 'lib/awscli/cli/ec2/ebs.rb', line 50

def delete_detached
  create_ec2_object
  @ec2.delete_detached
end

#delete_snapshotObject



72
73
74
75
# File 'lib/awscli/cli/ec2/ebs.rb', line 72

def delete_snapshot
  create_ec2_object
  @ec2.delete_snapshot options
end

#detach_volumeObject



36
37
38
39
# File 'lib/awscli/cli/ec2/ebs.rb', line 36

def detach_volume
  create_ec2_object
  @ec2.detach_volume options
end

#listObject



9
10
11
12
# File 'lib/awscli/cli/ec2/ebs.rb', line 9

def list
  create_ec2_object
  @ec2.list options
end