Sha256: 8bb4a61453bd2ab80bff2dc679cd6a89bd7f2d99ec27febc26d4505a52df5cb3

Contents?: true

Size: 674 Bytes

Versions: 15

Compression:

Stored size: 674 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'pricehubble'

PriceHubble.reset_configuration!
PriceHubble.configure do |conf|
  # conf.request_logging = true
end

errors = false

if ENV['PRICEHUBBLE_USERNAME'].blank?
  errors = true
  puts '> [ERR] Environment variable `PRICEHUBBLE_USERNAME` is missing.'
end

if ENV['PRICEHUBBLE_PASSWORD'].blank?
  errors = true
  puts '> [ERR] Environment variable `PRICEHUBBLE_PASSWORD` is missing.'
end

if errors
  puts
  puts '> Usage:'
  puts ">   $ export PRICEHUBBLE_USERNAME='your-username'"
  puts ">   $ export PRICEHUBBLE_PASSWORD='your-password'"
  puts ">   $ #{$PROGRAM_NAME} #{ARGV.join(' ')}"
  exit
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pricehubble-1.3.0 doc/examples/config.rb
pricehubble-1.2.5 doc/examples/config.rb
pricehubble-1.2.4 doc/examples/config.rb
pricehubble-1.2.3 doc/examples/config.rb
pricehubble-1.2.2 doc/examples/config.rb
pricehubble-1.2.1 doc/examples/config.rb
pricehubble-1.2.0 doc/examples/config.rb
pricehubble-1.1.0 doc/examples/config.rb
pricehubble-1.0.0 doc/examples/config.rb
pricehubble-0.4.2 doc/examples/config.rb
pricehubble-0.4.1 doc/examples/config.rb
pricehubble-0.4.0 doc/examples/config.rb
pricehubble-0.3.0 doc/examples/config.rb
pricehubble-0.2.0 doc/examples/config.rb
pricehubble-0.1.0 doc/examples/config.rb