pastebinner/bin/console

14 lines
501 B
Ruby
Executable file

#!/usr/bin/env ruby
require '../lib/pastebinner'
require '../lib/elastic_search_helper'
# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
# (If you use this, don't forget to add pry to your Gemfile!)
require 'pry'
# set restclient logging and setup a pb object
RestClient.log ='stdout'
pb = Pastebinner.new(ENV['pastebin_api_key'], ENV['pastebin_username'], ENV['pastebin_password'])
binding.pry