Sha256: f88a82db14493623fb8dd05d8e58660d37b5c7d9cb2d39e80bfb859f96c7a1b0

Contents?: true

Size: 640 Bytes

Versions: 4

Compression:

Stored size: 640 Bytes

Contents

def fixture_key(type, filename)
  dir_name = type.to_s + "s"
  Rails.root + "../fixtures/#{dir_name}/#{filename}"
end

def config_options
  config = YAML.load( File.open(fixture_key("config", "account_config.yml")) )
  config["key_file"]  = fixture_key("key", config["pem"])
  return config
end

GoogleBigquery::Config.setup do |config|
  config.pass_phrase = config_options["pass_phrase"]
  config.key_file    = config_options["key_file"]
  config.client_id   = config_options["client_id"]
  config.scope       = config_options["scope"]
  config.profile_id  = config_options["profile_id"]
  config.email       = config_options["email"]
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bigbroda-0.0.4 spec/dummy/config/initializers/bigquery.rb
bigbroda-0.0.3 spec/dummy/config/initializers/bigquery.rb
bigbroda-0.0.2 spec/dummy/config/initializers/bigquery.rb
bigbroda-0.0.1 spec/dummy/config/initializers/bigquery.rb