Class: HookSpec::Application
- Inherits:
-
Rake::Application
- Object
- Rake::Application
- HookSpec::Application
- Defined in:
- lib/hookspec/application.rb
Instance Method Summary collapse
-
#initialize ⇒ Application
constructor
A new instance of Application.
- #load_rakefile ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
4 5 6 7 8 9 |
# File 'lib/hookspec/application.rb', line 4 def initialize super @branch = `git rev-parse --abbrev-ref HEAD`.chomp! @diffs_info = {} @all_files = [] end |
Instance Method Details
#load_rakefile ⇒ Object
16 17 18 |
# File 'lib/hookspec/application.rb', line 16 def load_rakefile load File.(File.join(File.dirname(__FILE__),'tasks/install.rake')) end |
#run ⇒ Object
11 12 13 14 |
# File 'lib/hookspec/application.rb', line 11 def run Rake.application = self super end |