Class: HookSpec::Application

Inherits:
Rake::Application
  • Object
show all
Defined in:
lib/hookspec/application.rb

Instance Method Summary collapse

Constructor Details

#initializeApplication

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_rakefileObject



16
17
18
# File 'lib/hookspec/application.rb', line 16

def load_rakefile
  load File.expand_path(File.join(File.dirname(__FILE__),'tasks/install.rake'))
end

#runObject



11
12
13
14
# File 'lib/hookspec/application.rb', line 11

def run
  Rake.application = self
  super
end