Method: CFMicro::McfCommand#check_vm_running

Defined in:
lib/micro/plugin.rb

#check_vm_runningObject



81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/micro/plugin.rb', line 81

def check_vm_running
  unless runner.running?
    if ask("MCF VM is not running. Do you want to start it?", :default => true)
      with_progress("Starting MCF VM") do
        runner.start!
      end
    else
      fail "MCF VM needs to be running."
    end
  end

  unless runner.ready?
    fail "MCF VM initial setup needs to be completed before using 'truck micro'"
  end
end