Module: Vagabond::Actions::Freeze
- Defined in:
- lib/vagabond/actions/freeze.rb
Instance Method Summary collapse
Instance Method Details
#_freeze ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/vagabond/actions/freeze.rb', line 5 def _freeze name_required! if(lxc.exists?) ui.info "#{ui.color('Vagabond:', :bold)} Freezing node: #{ui.color(name, :blue)}" if(lxc.running?) lxc.freeze ui.info ui.color(' -> FROZEN', :blue) else ui.error "Node is not currently running: #{name}" end else ui.error "Node not created: #{name}" end end |