Class: Putpaws::Application

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

Instance Method Summary collapse

Constructor Details

#initializeApplication

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_locationObject



17
18
19
20
21
22
23
24
# File 'lib/putpaws/application.rb', line 17

def find_rakefile_location
  putpawsfile = File.expand_path(File.join(File.dirname(__FILE__), "..", "Putpawsfile"))
  if (location = super).nil?
    [putpawsfile, Dir.pwd]
  else
    location
  end
end

#nameObject



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