Sha256: 5dbb0a41ed49b54d5a5f55dfb459305f85c80db1307a31873d3ce9ac2c1a34f1

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

module Vagabond
  module Actions
    module Up
      def up
        if(@lxc.exists?)
          ui.warn "Existing container found for: #{name}. Starting..."
          do_start
        else
          do_start
        end
      end

      private

      def do_start
        if(lxc.running?)
          ui.error "LXC: #{name} is already running!"
        else
          do_create
          ui.info "LXC: #{name} has been started!"
          do_provision unless Config[:disable_auto_provision]
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagabond-0.1.0 lib/vagabond/actions/up.rb