Module: Vagabond::Actions::Thaw
- Defined in:
- lib/vagabond/actions/thaw.rb
Instance Method Summary collapse
Instance Method Details
#thaw ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/vagabond/actions/thaw.rb', line 4 def thaw if(lxc.exists?) if(lxc.frozen?) ui.info "#{ui.color('Vagabond:', :bold)} Thawing node: #{ui.color(name, :yellow)}" lxc.unfreeze ui.info ui.color(' -> THAWED!', :yellow) else ui.error "Node is not currently frozen: #{name}" end else ui.error "Node does not exist: #{name}" end end |