2013-06-05 00:19:02 +04:00
|
|
|
require 'bundler/setup'
|
2013-06-04 22:59:18 +04:00
|
|
|
require 'rake'
|
2013-06-05 00:19:02 +04:00
|
|
|
require File.expand_path('../rake/task', __FILE__)
|
2013-06-04 22:59:18 +04:00
|
|
|
|
2013-06-05 00:19:02 +04:00
|
|
|
require 'rake_control/config'
|
2013-06-05 00:41:48 +04:00
|
|
|
require 'rake_control/statistics'
|
|
|
|
require 'rake_control/version'
|
2013-06-04 22:11:41 +04:00
|
|
|
require 'rake_control/wrapper'
|
2013-06-04 21:03:30 +04:00
|
|
|
|
|
|
|
module RakeControl
|
2013-06-05 00:19:02 +04:00
|
|
|
def config
|
|
|
|
@config ||= Config.new
|
|
|
|
end
|
|
|
|
|
2013-06-05 00:41:48 +04:00
|
|
|
def configure
|
|
|
|
yield config if block_given?
|
|
|
|
config.apply
|
|
|
|
end
|
|
|
|
|
2013-06-04 22:11:41 +04:00
|
|
|
def wrap(name, description, &block)
|
|
|
|
Wrapper.new(name, description, block).execute
|
|
|
|
end
|
|
|
|
|
|
|
|
extend self
|
2013-06-04 21:03:30 +04:00
|
|
|
end
|