Class: Molflow::Application

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

Instance Method Summary collapse

Constructor Details

#initializeApplication

Returns a new instance of Application.



3
4
5
6
# File 'lib/molflow/application.rb', line 3

def initialize
  super
  @rakefiles = %w{Capfile} << rakefile
end

Instance Method Details

#rakefileObject

allows the ‘cap install` task to load without a capfile



14
15
16
# File 'lib/molflow/application.rb', line 14

def rakefile
  File.expand_path(File.join(File.dirname(__FILE__),'..','Rakefile'))
end

#runObject



8
9
10
11
# File 'lib/molflow/application.rb', line 8

def run
  Rake.application = self
  super
end