Class: VMCAppfog::Import

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

Instance Method Summary collapse

Instance Method Details

#import_serviceObject



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

def import_service
  service = input[:service]
  url = input[:url]

  import_info =
    with_progress("Importing data to service #{c(service.name, :name)}") do
      client.import_service(service.name, url)
    end

  line unless quiet?

  line "Data imported to #{c(service.name, :name)} successfully "
end