Sha256: 866ab963590ffece9cf2921cf23ceb1db4d7d12a4377cf14b6443be1fa6c8257

Contents?: true

Size: 478 Bytes

Versions: 16

Compression:

Stored size: 478 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", "Vagrantfile"
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mccloud-0.1.1 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.28 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.27 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.26 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.25 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.24 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.23 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.22 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.21 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.20 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.19 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.18 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.17 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.16 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.15 lib/mccloud/command/init_vagrant.rb
mccloud-0.0.14 lib/mccloud/command/init_vagrant.rb