class Rum::Application
Rum
main application object. When invoking rum
from the command line, a Rum::Application
object is created and run.
Constants
- DEFAULT_RAKEFILES
Default names for
Rum
Runner manifests.
Public Class Methods
new()
click to toggle source
Initialize a Rumfile::Application object.
Calls superclass method
# File lib/rumrunner/application.rb, line 22 def initialize super @name = "rum" @rakefiles = DEFAULT_RAKEFILES.dup end
Public Instance Methods
init(app_name="rum", argv = ARGV)
click to toggle source
Initialize the command line parameters and app name.
Calls superclass method
# File lib/rumrunner/application.rb, line 30 def init(app_name="rum", argv = ARGV) super "rum", argv end
rumfile?()
click to toggle source
Return true if any of the default Rumfiles exist
# File lib/rumrunner/application.rb, line 36 def rumfile? DEFAULT_RAKEFILES.map{|x| File.size? x }.any? end
run(argv = ARGV)
click to toggle source
Run application
Calls superclass method
# File lib/rumrunner/application.rb, line 42 def run(argv = ARGV) if argv.first == "init" && !rumfile? Rum.init elsif ["-V", "--version"].include? argv.first puts "rum, version #{Rum::VERSION}" else super end end