Sha256: ce1b7a518436b17219565657d27f64764797b24a3015f0cbcaa03561ff7ab55d

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

Given(/^I have default Vagrantfile$/) do
  vagrantfile = <<-RUBY
Vagrant.require_plugin 'vagrant-exec'

Vagrant.configure('2') do |config|
  config.vm.box = 'vagrant_exec'
end
  RUBY
  step 'a file named "Vagrantfile" with:', vagrantfile
end


Given(/^I set vagrant-exec folder to (.+)$/) do |folder|
  config = <<-RUBY

Vagrant.configure('2') do |config|
  config.exec.folder = #{folder}
end
  RUBY
  step 'I append to "Vagrantfile" with:', config
end


Given(/^I set vagrant-exec bundler to (.+)$/) do |bundler|
  config = <<-RUBY

Vagrant.configure('2') do |config|
  config.exec.bundler = #{bundler}
end
  RUBY
  step 'I append to "Vagrantfile" with:', config
end


Given(/^I set vagrant-exec env with the following values:$/) do |table|
  data = table.hashes
  config = data.map do |hash|
    key, value = "#{hash['key']}", "#{hash['value']}"
    %(config.exec.env['#{key}'] = '#{value}')
  end

  config = <<-RUBY

Vagrant.configure('2') do |config|
  #{config.join("\n\s\s")}
end
  RUBY
  step 'I append to "Vagrantfile" with:', config
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
vagrant-exec-0.2.1 features/step_definitions/steps.rb
vagrant-recipe-0.1.3 features/step_definitions/steps.rb
vagrant-recipe-0.1.2 features/step_definitions/steps.rb
vagrant-recipe-0.1.1 features/step_definitions/steps.rb
vagrant-recipe-0.1.0 features/step_definitions/steps.rb
vagrant-exec-0.2.0 features/step_definitions/steps.rb