Sha256: c13948543fe4ce3f8969394c77ae38c535e4fccd305a82b1d1671f1516b1ef34

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

#encoding: utf-8
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

1 entries across 1 versions & 1 rubygems

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