Class: Mccloud::Command::KeystoreCommand

Inherits:
GroupBase
  • Object
show all
Defined in:
lib/mccloud/command/keystore.rb

Instance Attribute Summary

Attributes inherited from GroupBase

#env

Instance Method Summary collapse

Methods inherited from GroupBase

#initialize, register

Methods included from Helpers

#initialize_environment

Constructor Details

This class inherits a constructor from Mccloud::Command::GroupBase

Instance Method Details

#list(selection = nil) ⇒ Object

method_options :test => :boolean



8
9
10
11
12
13
14
# File 'lib/mccloud/command/keystore.rb', line 8

def list(selection=nil)

    env.config.providers.each do |name,provider|
      env.ui.info("Asking provider #{name} to list keystore #{selection}")
      provider.keystore_list(selection,options)
    end
end

#sync(selection = nil) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/mccloud/command/keystore.rb', line 18

def sync(selection=nil)

    env.config.providers.each do |name,provider|
      env.ui.info("Asking provider #{name} to sync keystore #{selection}")
      provider.keystore_sync(selection,options)
    end
end