Module: Tumbler

Defined in:
lib/tumbler.rb,
lib/tumbler/cli.rb,
lib/tumbler/gem.rb,
lib/tumbler/runner.rb,
lib/tumbler/manager.rb,
lib/tumbler/updater.rb,
lib/tumbler/version.rb,
lib/tumbler/generate.rb,
lib/tumbler/informer.rb,
lib/tumbler/rake_tasks.rb,
lib/tumbler/gemspec_helper.rb,
lib/tumbler/manager/version.rb,
lib/tumbler/manager/changelog.rb

Defined Under Namespace

Modules: Informer, Runner Classes: Cli, Gem, GemspecHelper, Generate, Manager, RakeTasks, Updater

Constant Summary collapse

Gemspec =
Tumbler::GemspecHelper.new(Tumbler.load(root))
VERSION =
'0.0.16'

Class Method Summary collapse

Class Method Details

.load(base) ⇒ Object



27
28
29
# File 'lib/tumbler.rb', line 27

def self.load(base)
  File.exist?(File.join(base, 'Tumbler')) ? Manager.new(base) : nil
end

.use_rake_tasks(name = nil) ⇒ Object



22
23
24
25
# File 'lib/tumbler.rb', line 22

def self.use_rake_tasks(name = nil)
  root = File.dirname(Callsite.parse(caller).find{|c| c.filename =~ /Rakefile/}.filename)
  Tumbler::RakeTasks.register(File.expand_path(root), name)
end