Class: Mccloud::Command::KeystoreCommand
- Defined in:
- lib/mccloud/command/keystore.rb
Instance Attribute Summary
Attributes inherited from GroupBase
Instance Method Summary collapse
-
#list(selection = nil) ⇒ Object
method_options :test => :boolean.
- #sync(selection = nil) ⇒ Object
Methods inherited from GroupBase
Methods included from Helpers
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,) 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,) end end |