Class: RightScaleCLI::RecurringVolumeAttachments
- Inherits:
-
Thor
- Object
- Thor
- RightScaleCLI::RecurringVolumeAttachments
- Defined in:
- lib/rightscale_cli/recurring_volume_attachments.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ RecurringVolumeAttachments
constructor
A new instance of RecurringVolumeAttachments.
- #list ⇒ Object
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() @logger = RightScaleCLI::Logger.new end |
Class Method Details
.banner(task, namespace = true, subcommand = false) ⇒ Object
46 47 48 |
# File 'lib/rightscale_cli/recurring_volume_attachments.rb', line 46 def self.(task, namespace = true, subcommand = false) "#{basename} #{task.formatted_usage(self, true, subcommand)}" end |
Instance Method Details
#list ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/rightscale_cli/recurring_volume_attachments.rb', line 36 def list() = [] filter = [] @client.client.clouds(:id => [:cloud]).show.(:filter => filter).index.each do |attach| .push(attach) end @client.render(, 'recurring_volume_attachments') end |