Class: VMCAppfog::Map

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

Instance Method Summary collapse

Instance Method Details

#mapObject



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

def map
  app = input[:app]
  url = input[:url]

  with_progress("Updating #{c(app.name, :name)}") do
    app.urls << url
    app.update!
  end
end

#preconditionObject



3
# File 'lib/appfog-vmc-plugin/commands/map.rb', line 3

def precondition; end