2019-02-07 01:10:20 -06:00
|
|
|
# change this to a config module soon:
|
2019-03-29 01:00:11 -05:00
|
|
|
require '../config/configuration'
|
2018-08-16 14:54:08 -05:00
|
|
|
require 'rest-client'
|
2018-11-04 02:28:57 -06:00
|
|
|
require 'json'
|
2019-02-03 02:09:51 -06:00
|
|
|
require 'yaml'
|
2019-02-07 01:10:20 -06:00
|
|
|
require 'optparse'
|
|
|
|
require 'pastebinner/version'
|
|
|
|
require 'pastebinner/option_parser'
|
|
|
|
require 'pastebinner/api_client'
|
|
|
|
|
|
|
|
module Pastebinner
|
2019-03-29 01:00:11 -05:00
|
|
|
|
|
|
|
class << self
|
|
|
|
attr_accessor :configuration
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.configuration
|
|
|
|
@configuration ||= Configuration.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.reset
|
|
|
|
@configuration = Configuration.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.configure
|
|
|
|
yield(configuration)
|
|
|
|
end
|
|
|
|
|
2018-11-04 02:59:25 -06:00
|
|
|
end
|