Sha256: b1d908c8fbfbe552fb0e1262d0a37ddcf7452cb195df83ececa53800220d46d2

Contents?: true

Size: 766 Bytes

Versions: 1

Compression:

Stored size: 766 Bytes

Contents

#!/usr/bin/env ruby

require 'bundler/setup'
require 'tophatter_merchant'
require 'awesome_print'
require 'pry'

begin
  TophatterMerchant.api_path = File.read('/tmp/.tophatter-api-path').chomp
  puts "TophatterMerchant.api_path: #{TophatterMerchant.api_path}"
rescue Errno::ENOENT
  puts "No /tmp/.tophatter-api-path file, using default: #{TophatterMerchant.api_path}"
end

begin
  TophatterMerchant.access_token = File.read('/tmp/.tophatter-access-token').chomp
  puts "TophatterMerchant.access_token: #{TophatterMerchant.access_token}"
rescue Errno::ENOENT
  puts "No /tmp/.tophatter-access-token file - you'll have to set TophatterMerchant.access_token manually from the console."
end

TophatterMerchant.logger.level = Logger::DEBUG

AwesomePrint.pry!
Pry.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tophatter-merchant-1.3.3 bin/console