Sha256: dfe8b90516c82f325991715f43272bd1784e027915ca4c8519bd7761b9b66110

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

#encoding: utf-8
module Vagabond
  module Actions
    module Thaw
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagabond-0.2.10 lib/vagabond/actions/thaw.rb