Sha256: e358dd6bd092043d9e0ed4ef4f9926bbcdadbd3c82697a18ba98ba039959e312
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'rest-client' require 'zinc' begin Zinc.api_path = File.read('/tmp/.zinc-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('/tmp/.zinc-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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zinc-api-0.0.3 | bin/zinc-api-console |
zinc-api-0.0.2 | bin/zinc-api-console |