16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/vagabond/actions/up.rb', line 16
def _up
name_required!
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
end
if(options[:parallel])
@threads[:up] ||= []
@threads[:up] << Thread.new do
_create
do_provision if options[:auto_provision]
end
else
_create
do_provision if options[:auto_provision]
end
end
|