Sha256: 8ab430732f2460896829eba6b3d6d74c79c823a17e45be32f8b4863dad2fc1b8
Contents?: true
Size: 729 Bytes
Versions: 7
Compression:
Stored size: 729 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'rest-client' require 'tophatter_merchant' begin TophatterMerchant.api_path = File.read('.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('.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
7 entries across 7 versions & 1 rubygems