#!/usr/bin/env ruby require 'bundler/setup' require 'rest-client' require 'zinc' begin Zinc.api_path = File.read('.api_path').chomp puts "Zinc.api_path: #{Zinc.api_path}" rescue Errno::ENOENT puts "No .api_path file, using default: #{Zinc.api_path}" end begin Zinc.access_token = File.read('.access_token').chomp puts "Zinc.access_token: #{Zinc.access_token}" rescue Errno::ENOENT puts "No .access_token file - you'll have to set Zinc.access_token manually from the console." end Zinc.logger.level = Logger::DEBUG require 'awesome_print' require 'pry' AwesomePrint.pry! Pry.start