Sha256: a74d9366fbed896a4ffb6b5b83e3a784dd69efed4d2590bbdba7b310bf5256f6

Contents?: true

Size: 507 Bytes

Versions: 8

Compression:

Stored size: 507 Bytes

Contents

module Vagrant
  module Command
    class UpCommand < NamedBase
      class_option :provision, :type => :boolean, :default => true
      register "up", "Creates the Vagrant environment"

      def execute
        # TODO: Make the options[:provision] actually mean something
        target_vms.each do |vm|
          if vm.created?
            vm.env.ui.info I18n.t("vagrant.commands.up.vm_created")
            vm.start
          else
            vm.up
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
vagrantup-0.6.3 lib/vagrant/command/up.rb
vagrantup-0.6.2 lib/vagrant/command/up.rb
vagrantup-0.6.1 lib/vagrant/command/up.rb
vagrantup-0.6.0 lib/vagrant/command/up.rb
vagrant-0.6.3 lib/vagrant/command/up.rb
vagrant-0.6.2 lib/vagrant/command/up.rb
vagrant-0.6.1 lib/vagrant/command/up.rb
vagrant-0.6.0 lib/vagrant/command/up.rb