Sha256: e8ffa43bf8f1729cd65ce7249dbffeef0884dcb9155f756c87a4d534f6b0acca

Contents?: true

Size: 505 Bytes

Versions: 5

Compression:

Stored size: 505 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
vagabond-0.2.8 lib/vagabond/actions/thaw.rb
vagabond-0.2.6 lib/vagabond/actions/thaw.rb
vagabond-0.2.4 lib/vagabond/actions/thaw.rb
vagabond-0.2.2 lib/vagabond/actions/thaw.rb
vagabond-0.2.0 lib/vagabond/actions/thaw.rb