PageRenderTime 39ms CodeModel.GetById 36ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/Ruby/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb

http://github.com/agross/netopenspace
Ruby | 29 lines | 17 code | 6 blank | 6 comment | 0 complexity | 8ad6c6571ad30286244c6b657d54c6f4 MD5 | raw file
 1require 'rake/application'
 2
 3module Rake
 4
 5  # Rake module singleton methods.
 6  #
 7  class << self
 8    # Current Rake Application
 9    def application
10      @application ||= Rake::Application.new
11    end
12
13    # Set the current Rake application object.
14    def application=(app)
15      @application = app
16    end
17
18    # Return the original directory where the Rake application was started.
19    def original_dir
20      application.original_dir
21    end
22
23    # Load a rakefile.
24    def load_rakefile(path)
25      load(path)
26    end
27  end
28
29end