Sha256: e7fec2d0226d078c125f75cf9726a89a10b54d918febb8e175b54d6fe887dd0e

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

Stored size: 759 Bytes

Contents

#!/usr/bin/env ruby

require 'bundler/setup'
require 'rest-client'
require 'tophatter_merchant'

begin
  TophatterMerchant.api_path = File.read('/tmp/.tophatter-api-path').chomp
  puts "TophatterMerchant.api_path: #{TophatterMerchant.api_path}"
rescue Errno::ENOENT
  puts "No .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 .access_token file - you'll have to set TophatterMerchant.access_token manually from the console."
end

TophatterMerchant.logger.level = Logger::DEBUG

require 'awesome_print'
require 'pry'

AwesomePrint.pry!
Pry.start

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tophatter-merchant-1.3.2 bin/tophatter-merchant-console
tophatter-merchant-1.3.1 bin/tophatter-merchant-console