Class: RightScaleCLI::RecurringVolumeAttachments

Inherits:
Thor
  • Object
show all
Defined in:
lib/rightscale_cli/recurring_volume_attachments.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ RecurringVolumeAttachments

Returns a new instance of RecurringVolumeAttachments.



25
26
27
28
29
# File 'lib/rightscale_cli/recurring_volume_attachments.rb', line 25

def initialize(*args)
  super
  @client = RightScaleCLI::Client.new(options)
  @logger = RightScaleCLI::Logger.new
end

Class Method Details



46
47
48
# File 'lib/rightscale_cli/recurring_volume_attachments.rb', line 46

def self.banner(task, namespace = true, subcommand = false)
  "#{basename} #{task.formatted_usage(self, true, subcommand)}"
end

Instance Method Details

#listObject



36
37
38
39
40
41
42
43
# File 'lib/rightscale_cli/recurring_volume_attachments.rb', line 36

def list()
  attachments = []
  filter = []
  @client.client.clouds(:id => options[:cloud]).show.recurring_volume_attachments(:filter => filter).index.each do |attach|
    attachments.push(attach)
  end
  @client.render(attachments, 'recurring_volume_attachments')
end