Module: Vagabond::Actions::Provision

Defined in:
lib/vagabond/actions/provision.rb

Instance Method Summary collapse

Instance Method Details

#_provisionObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/vagabond/actions/provision.rb', line 5

def _provision
  name_required!
  if(lxc.exists?)
    if(lxc.running?)
      do_provision
    else
      ui.error "Node is not currently running: #{name}"
    end
  else
    ui.error "Node not created: #{name}"
  end
end