lib/kitchen/driver/vagrant_winrm.rb in kitchen-vagrant_winrm-0.2.1 vs lib/kitchen/driver/vagrant_winrm.rb in kitchen-vagrant_winrm-0.2.2

- old
+ new

@@ -11,20 +11,22 @@ # # @author Baptiste Courtois <b.courtois@criteo.com> class VagrantWinrm < Base default_config :communicator, :winrm + default_config :custom_settings, {} default_config :customize, { vrde: 'on', vrdeport: '5000-5100', vrdeauthtype: 'null', } default_config :guest, :windows default_config :network, [] default_config :pre_create_command, nil default_config :require_chef_omnibus, false default_config :synced_folders, [] + default_config :provision, false default_config :vagrantfile_erb, File.join(File.dirname(__FILE__), '../../../templates/Vagrantfile.erb') default_config :provider, @@ -43,10 +45,11 @@ no_parallel_for :create, :destroy def create(state) create_vagrantfile run_pre_create_command - cmd = 'vagrant up --no-provision' + cmd = 'vagrant up' + cmd += ' --no-provision' unless config[:provision] cmd += " --provider=#{config[:provider]}" if config[:provider] run cmd info("Vagrant instance #{instance.to_str} created.") state[:created] = true end