2018-08-16 14:54:08 -05:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2019-02-07 01:10:20 -06:00
|
|
|
require 'bundler/setup'
|
|
|
|
require 'pastebinner'
|
2019-02-01 22:19:36 -06:00
|
|
|
require 'pry'
|
2019-10-29 21:01:03 -05:00
|
|
|
|
2019-03-19 02:14:03 -05:00
|
|
|
# setup restclient log to the console
|
|
|
|
# make it into a method to toggle on or off
|
|
|
|
def rest_client_toggle_log(default=false)
|
|
|
|
if default
|
|
|
|
RestClient.log = 'stdout'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-04-06 00:03:01 -05:00
|
|
|
Pastebinner.configure do |config|
|
|
|
|
config.api_key = ENV['pastebin_api_key']
|
|
|
|
config.api_username = ENV['pastebin_username']
|
|
|
|
config.api_password = ENV['pastebin_password']
|
|
|
|
end
|
|
|
|
|
|
|
|
pb = Pastebinner::ApiClient.new(Pastebinner.configuration.api_key, Pastebinner.configuration.api_username, Pastebinner.configuration.api_password)
|
2019-03-19 02:14:03 -05:00
|
|
|
|
2019-10-29 21:01:03 -05:00
|
|
|
# you should have a pb object to work with now, have fun in pry!
|
2019-01-06 19:26:16 -06:00
|
|
|
binding.pry
|