Rakefile in vagrant-orchestrate-0.4.5 vs Rakefile in vagrant-orchestrate-0.4.6

- old
+ new

@@ -5,5 +5,18 @@ RuboCop::RakeTask.new RSpec::Core::RakeTask.new(:spec) task build: ["rubocop:auto_correct", :spec] task default: :build + +desc "Run acceptance tests with vagrant-spec" +task :acceptance do + puts "Brining up target servers" + # Spinning up local servers here, which the managed provider will connect to + # by IP. See the Vagrantfile in the root of the repo for more info. + system("vagrant up /local/ --no-provision") + # To ensure the ntp sync happens even if the servers are already up + system("vagrant provision /local/") + system("bundle exec vagrant-spec test --components=orchestrate/push orchestrate/prompt") + puts "Destroying target servers" + system("vagrant destroy -f /local/") +end