Sha256: c2bf2de32869f6905e2612c7e753d35beec1418c89ca00b9e75d42dfba7fd79e

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 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"]
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spark_api-1.4.26 lib/spark_api/cli/api_auth.rb
spark_api-1.4.25 lib/spark_api/cli/api_auth.rb
spark_api-1.4.24 lib/spark_api/cli/api_auth.rb
spark_api-1.4.23 lib/spark_api/cli/api_auth.rb
spark_api-1.4.22 lib/spark_api/cli/api_auth.rb
spark_api-1.4.21 lib/spark_api/cli/api_auth.rb
spark_api-1.4.20 lib/spark_api/cli/api_auth.rb
spark_api-1.4.19 lib/spark_api/cli/api_auth.rb
spark_api-1.4.18 lib/spark_api/cli/api_auth.rb
spark_api-1.4.17 lib/spark_api/cli/api_auth.rb
spark_api-1.4.16 lib/spark_api/cli/api_auth.rb
spark_api-1.4.15 lib/spark_api/cli/api_auth.rb