Class: Putpaws::Application
- Inherits:
-
Rake::Application
- Object
- Rake::Application
- Putpaws::Application
- Defined in:
- lib/putpaws/application.rb
Instance Method Summary collapse
- #find_rakefile_location ⇒ Object
-
#initialize ⇒ Application
constructor
A new instance of Application.
- #name ⇒ Object
- #run(argv = ARGV) ⇒ Object
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
3 4 5 6 |
# File 'lib/putpaws/application.rb', line 3 def initialize super @rakefiles = %w{putpawsfile Putpawsfile putpawsfile.rb Putpawsfile.rb} end |
Instance Method Details
#find_rakefile_location ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/putpaws/application.rb', line 17 def find_rakefile_location putpawsfile = File.(File.join(File.dirname(__FILE__), "..", "Putpawsfile")) if (location = super).nil? [putpawsfile, Dir.pwd] else location end end |
#name ⇒ Object
8 9 10 |
# File 'lib/putpaws/application.rb', line 8 def name "putpaws" end |
#run(argv = ARGV) ⇒ Object
12 13 14 15 |
# File 'lib/putpaws/application.rb', line 12 def run(argv = ARGV) Rake.application = self super end |