Sha256: dd54978938527c65dd182fb76590675522debe0e156ac020a97a5dda6aea20b8
Contents?: true
Size: 574 Bytes
Versions: 1
Compression:
Stored size: 574 Bytes
Contents
#!/usr/bin/env ruby lib_path = File.expand_path(File.dirname(__FILE__) + '/../lib') $LOAD_PATH << lib_path if File.exist?(lib_path) && !$LOAD_PATH.include?(lib_path) require_relative '../lib/yelp/business' require 'colored2' if ARGV.empty? puts 'usage: yelp-business <business_id>' puts ' eg: yelp-business gary-danko-san-francisco' else require 'awesome_print' begin ap Yelp::Business.new(ARGV.shift).get.data rescue Yelp::MissingAccessTokenError puts 'Error!'.bold.red + ' Set ' + 'YELP_ACCESS_TOKEN'.bold.blue + ' environment variable!' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yelp-business-0.2.1 | bin/yelp-business |