Sha256: 3f72ab5b516456c4c22bf3669299ffb7efba9f03b6205690e61ee82de59f60e4
Contents?: true
Size: 377 Bytes
Versions: 3
Compression:
Stored size: 377 Bytes
Contents
module Helpers def api_envs @api_envs = begin env = ENV["API_ENV"] || "development" YAML.load_file("api_envs.yml")[env] end end def setup_for(user) VzaarApi.hostname = api_envs['hostname'] if api_envs['hostname'] VzaarApi.auth_token = api_envs[user.to_s]['auth_token'] VzaarApi.client_id = api_envs[user.to_s]['client_id'] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vzaar_api-2.0.2 | examples/support/helpers.rb |
vzaar_api-2.0.1 | examples/support/helpers.rb |
vzaar_api-2.0.0 | examples/support/helpers.rb |