Sha256: 8289ab66bdf7a5c5fa2805792a6c2918d4609a939a48162f34b051108e195924

Contents?: true

Size: 517 Bytes

Versions: 18

Compression:

Stored size: 517 Bytes

Contents

require File.dirname(__FILE__) + "/../cli/setup"

SparkApi.configure do |config|
  config.api_key = ENV["API_KEY"] 
  config.api_secret = ENV["API_SECRET"]
  config.api_user = ENV["API_USER"] if ENV["API_USER"]
  config.endpoint = ENV["API_ENDPOINT"] if ENV["API_ENDPOINT"]
  config.ssl_verify = ENV["SSL_VERIFY"].downcase != 'false' if ENV["SSL_VERIFY"]
  config.middleware = ENV["SPARK_MIDDLEWARE"] if ENV["SPARK_MIDDLEWARE"]
  config.dictionary_version = ENV["DICTIONARY_VERSION"] if ENV["DICTIONARY_VERSION"]
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spark_api-1.6.3 lib/spark_api/cli/api_auth.rb
spark_api-1.6.2 lib/spark_api/cli/api_auth.rb
spark_api-1.6.1 lib/spark_api/cli/api_auth.rb
spark_api-1.5.7 lib/spark_api/cli/api_auth.rb
spark_api-1.6.0 lib/spark_api/cli/api_auth.rb
spark_api-1.5.6 lib/spark_api/cli/api_auth.rb
spark_api-1.5.5 lib/spark_api/cli/api_auth.rb
spark_api-1.5.4 lib/spark_api/cli/api_auth.rb
spark_api-1.5.3 lib/spark_api/cli/api_auth.rb
spark_api-1.5.2 lib/spark_api/cli/api_auth.rb
spark_api-1.5.1 lib/spark_api/cli/api_auth.rb
spark_api-1.5.0 lib/spark_api/cli/api_auth.rb
spark_api-1.4.34 lib/spark_api/cli/api_auth.rb
spark_api-1.4.32 lib/spark_api/cli/api_auth.rb
spark_api-1.4.31 lib/spark_api/cli/api_auth.rb
spark_api-1.4.29 lib/spark_api/cli/api_auth.rb
spark_api-1.4.28 lib/spark_api/cli/api_auth.rb
spark_api-1.4.27 lib/spark_api/cli/api_auth.rb