Sha256: 3c12aba8dcca1f25f6f92d1f2cc8171e349389a77bfd3a44e54a63c5578d7bdb

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

module Vagrant
  module Command
    class InitCommand < Base
      argument :box_name, :type => :string, :optional => true, :default => "base"
      argument :box_url, :type => :string, :optional => true
      source_root File.expand_path("templates/commands/init", Vagrant.source_root)
      register "init [box_name] [box_url]", "Initializes the current folder for Vagrant usage"

      def execute
        template "Vagrantfile.erb", env.cwd.join("Vagrantfile")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
vagrantup-0.8.9 lib/vagrant/command/init.rb
vagrantup-0.8.8 lib/vagrant/command/init.rb
vagrantup-0.8.10 lib/vagrant/command/init.rb
vagrant-0.8.10 lib/vagrant/command/init.rb
vagrant-0.8.8 lib/vagrant/command/init.rb