Sha256: 3c00edc3b1c299e8305ac0197b462be80c29ba82c0529c565e8dfa0438523fbd

Contents?: true

Size: 500 Bytes

Versions: 5

Compression:

Stored size: 500 Bytes

Contents

module Vagabond
  module Actions
    module Freeze
      def _freeze
        name_required!
        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

5 entries across 5 versions & 1 rubygems

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