Sha256: 4beb60fb3ec3539047cdf4d46967d755dea2b0675d47cafa23ad6f932c16ccef

Contents?: true

Size: 565 Bytes

Versions: 5

Compression:

Stored size: 565 Bytes

Contents

require 'aruba/cucumber'
require 'filewatcher'
require 'git'

# Load configuratiohn
config = YAML::load(File.open('config.yaml'))

# Cucumber / aruba configuration parameters
Before do
  @aruba_timeout_seconds = 300
end

# Set environment variables
Before do
  config[:environment_variables].keys.each do |key|
    ENV[key.to_s.upcase] = config[:environment_variables][key]
  end
end

# Before push and pull clone the repository
Before '@push,@pull' do 
  uri = ENV['SFDT_GIT_REPO']
  name = File.join 'tmp', 'aruba', ENV['SFDT_GIT_DIR']
  Git.clone(uri, name)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
salesforce-deploy-tool-1.1.0 features/support/env.rb
salesforce-deploy-tool-1.0.3 features/support/env.rb
salesforce-deploy-tool-1.0.2 features/support/env.rb
salesforce-deploy-tool-1.0.1 features/support/env.rb
salesforce-deploy-tool-1.0.0 features/support/env.rb