Sha256: 7b73fa952f24c8d6aba9fbac1036c4f72452accfa54fa779c348eb08d97bf722

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

# Use a json_spec style memorized value as an environment variable
When /I set the environment variable "(.*)" to memorized value "(.*)"/ do |key, value|
  JsonSpec.memory.each do |k,v|
    # JSON parser doesn't function properly on a JSON encoded string
    v = v[1...-1] if v[0] == '"'
    value.gsub! "%{#{k}}", v
  end
  set_environment_variable key, value
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
conjur-cli-6.2.0 features/step_definitions/overrides.rb
conjur-cli-6.1.0 features/step_definitions/overrides.rb
conjur-cli-6.0.1 features/step_definitions/overrides.rb
conjur-cli-6.0.0 features/step_definitions/overrides.rb
conjur-cli-6.0.0.rc1 features/step_definitions/overrides.rb