Sha256: 60b0b007cf31cfb327cb06006715774e65ea81d0ac60c5a10de08a91173e0f71
Contents?: true
Size: 1004 Bytes
Versions: 4
Compression:
Stored size: 1004 Bytes
Contents
module Vagabond module Actions module Up class << self def included(klass) klass.class_eval do class << self def _up_options [[:auto_provision, :type => :boolean, :default => true]] end end end end end 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 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vagabond-0.2.8 | lib/vagabond/actions/up.rb |
vagabond-0.2.6 | lib/vagabond/actions/up.rb |
vagabond-0.2.4 | lib/vagabond/actions/up.rb |
vagabond-0.2.2 | lib/vagabond/actions/up.rb |