Sha256: d7974e5ef49a972c6b447ff04df7ff890206a5bd172e7ffd3d963a11b2af3c91

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 Bytes

Contents

module Vagabond
  module Actions
    module Freeze
      def freeze
        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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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