Sha256: a3466247bb656e91c10c08ebd3097029f3ba3fbb6d8adaf52671ff6ae7c473bb

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

module Vagabond
  module Actions
    module Thaw
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagabond-0.1.4 lib/vagabond/actions/thaw.rb
vagabond-0.1.2 lib/vagabond/actions/thaw.rb