Class: Mccloud::Command::ImageCommand
Instance Attribute Summary
Attributes inherited from GroupBase
#env
Instance Method Summary
collapse
Methods inherited from GroupBase
#initialize, register
Methods included from Helpers
#initialize_environment
Instance Method Details
#create(selection = nil) ⇒ Object
17
18
19
20
21
|
# File 'lib/mccloud/command/image.rb', line 17
def create(selection=nil)
env.load!
env.ui.error "Not yet implemented"
end
|
#destroy(selection) ⇒ Object
24
25
26
27
28
29
30
31
32
|
# File 'lib/mccloud/command/image.rb', line 24
def destroy(selection)
env.load!
env.config.providers.each do |name,provider|
env.logger.debug("Asking provider #{name} to destroy image #{selection}")
provider.image_destroy(selection,options)
end
end
|
#list(selection = nil) ⇒ Object
7
8
9
10
11
12
13
14
|
# File 'lib/mccloud/command/image.rb', line 7
def list(selection=nil)
env.load!
env.config.providers.each do |name,provider|
env.logger.debug("Asking provider #{name} to list image #{selection}")
provider.image_list(selection,options)
end
end
|