Sha256: 60b64c6f8bed19f7226e26db675dd67a830ec662f5a3aafc258378f7aa237c19
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' # Otherwise "require 'aliexpress'" won't work. require 'aliexpress' require 'awesome_print' require 'pry' %w(client_id client_secret access_token refresh_token).each do |method| begin AliExpress.send("#{method}=", File.read(".#{method}").chomp) puts "AliExpress.#{method}: #{AliExpress.send(method)}" rescue Errno::ENOENT puts "No .#{method} file, using default: #{AliExpress.send(method)}" end end AliExpress.logger = Logger.new(STDOUT) AliExpress.logger.level = Logger::DEBUG AwesomePrint.pry! Pry.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aliexpress-0.4 | bin/console |