features/vagrant-exec/prepend.feature in vagrant-exec-0.5.0 vs features/vagrant-exec/prepend.feature in vagrant-exec-0.5.1
- old
+ new
@@ -22,11 +22,11 @@
Given I write to "Vagrantfile" with:
"""
Vagrant.configure('2') do |config|
config.vm.box = 'vagrant_exec'
config.exec.commands 'cmd', prepend: 'echo vagrant-exec1 &&'
- config.exec.commands %w(pwd echo), prepend: 'echo vagrant-exec2 &&'
+ config.exec.commands %w[pwd echo], prepend: 'echo vagrant-exec2 &&'
end
"""
And I run `bundle exec vagrant up`
When I run `bundle exec vagrant exec cmd`
Then SHH subprocess should execute command "cd /vagrant && echo vagrant-exec1 && cmd"
@@ -42,11 +42,11 @@
"""
Vagrant.configure('2') do |config|
config.vm.box = 'vagrant_exec'
config.exec.commands '*', prepend: 'echo vagrant-exec1 &&'
config.exec.commands 'pwd', prepend: 'echo vagrant-exec2 &&'
- config.exec.commands %w(pwd echo), prepend: 'echo vagrant-exec3 &&'
+ config.exec.commands %w[pwd echo], prepend: 'echo vagrant-exec3 &&'
end
"""
And I run `bundle exec vagrant up`
When I run `bundle exec vagrant exec pwd`
Then SHH subprocess should execute command "cd /vagrant && echo vagrant-exec1 && echo vagrant-exec2 && echo vagrant-exec3 && pwd"
@@ -59,10 +59,10 @@
Given I write to "Vagrantfile" with:
"""
Vagrant.configure('2') do |config|
config.vm.box = 'vagrant_exec'
config.exec.commands 'pwd', prepend: 'bundle exec'
- config.exec.commands 'pwd', env: { 'TEST' => true }
+ config.exec.commands 'pwd', env: {'TEST' => true}
end
"""
And I run `bundle exec vagrant up`
When I run `bundle exec vagrant exec pwd`
Then SHH subprocess should execute command "cd /vagrant && export TEST=true && bundle exec pwd"