Module: Vagabond::Actions::Thaw

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

Instance Method Summary collapse

Instance Method Details

#_thawObject



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

def _thaw
  name_required!
  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