Sha256: 7b9c2720d84396e6f73b8a1158cfa625c131599e2870c270435f5ec027979252

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

Given(/^a Vagrantfile with a adam\.provision_url of "(.*?)"$/) do |provision_url|

  file_content = <<EOS
require 'vagrant-adam'

Vagrant.configure("2") do |config|
  config.vm.define :ubuntu do |ubuntu|
    ubuntu.adam.provision_url = '#{provision_url}'
    ubuntu.vm.box = "precise64"
    ubuntu.vm.box_url = "http://files.vagrantup.com/precise64.box"
  end
end
EOS

  # Create file
  write_file('Vagrantfile', file_content)
end

Given(/^a shell file '(.*?)' with content of "(.*?)"$/) do |script_name, script_contents|

  file_content = <<EOS
#!/bin/sh -e
#{script_contents}
EOS

  # Create file
  write_file(script_name, file_content)
end

Given(/^a Vagrantfile with no adam\.provision_url$/) do
  file_content = <<EOS
require 'vagrant-adam'

Vagrant.configure("2") do |config|
  config.vm.define :ubuntu do |ubuntu|
    ubuntu.vm.box = "precise64"
    ubuntu.vm.box_url = "http://files.vagrantup.com/precise64.box"
  end
end
EOS

  # Create file
  write_file('Vagrantfile', file_content)
end

Given(/^the environment variable (.+) is nil$/) do |variable|
  set_env(variable, nil)
end

Given(/^the environment variable (.+) is "(.+)"$/) do |variable, value|
  set_env(variable, value)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-adam-0.1.0a features/step_definitions/steps.rb