Module: Vagabond::Actions::Up
- Defined in:
- lib/vagabond/actions/up.rb
Instance Method Summary collapse
Instance Method Details
#up ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vagabond/actions/up.rb', line 4 def up if(lxc.exists?) if(lxc.running?) ui.error "Node already exists and is running: #{name}" else ui.info "#{ui.color('Vagabond:', :bold)} Starting node: #{ui.color(name, :green)}" lxc.start ui.info ui.color(' -> STARTED', :green) end else create end do_provision unless Config[:disable_auto_provision] end |