Class: VMCAppfog::Export

Inherits:
VMC::CLI
  • Object
show all
Defined in:
lib/appfog-vmc-plugin/commands/export.rb

Instance Method Summary collapse

Instance Method Details

#export_serviceObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/appfog-vmc-plugin/commands/export.rb', line 7

def export_service
  service = input[:service]

  export_info =
    with_progress("Exporting service #{c(service.name, :name)}") do
      client.export_service(service.name)
    end

  line unless quiet?

  line "#{c(service.name, :name)} exported to: #{export_info[:uri]}"
end