Class: VMCAppfog::Pull
- Inherits:
-
VMC::CLI
- Object
- VMC::CLI
- VMCAppfog::Pull
- Defined in:
- lib/appfog-vmc-plugin/commands/pull.rb
Instance Method Summary collapse
Instance Method Details
#ask_app ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/appfog-vmc-plugin/commands/pull.rb', line 19 def ask_app apps = client.apps fail "No applications." if apps.empty? ask("Which application?", :choices => apps.sort_by(&:name), :display => proc(&:name)) end |
#pull ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/appfog-vmc-plugin/commands/pull.rb', line 8 def pull app = input[:app] path = File.(input[:path] || app.name) app = filter(:pull_app, app) with_progress("Pulling last pushed source code to #{c(app.name, :name)}") do client.app_pull(app.name, path) end end |