Module: GithubDeprecations

Defined in:
lib/github_deprecations.rb,
lib/github_deprecations/version.rb

Defined Under Namespace

Classes: Config, Noop, Worker

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.configure(options = {}, &blk) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/github_deprecations.rb', line 9

def configure(options = {}, &blk)
  config = Config.new(options)
  blk.call(config) if blk
  config
rescue ArgumentError => e
  $stderr.puts "WARNING: Missing config parameters for GithubDeprecations"
  Noop.new
end