lib/language_pack/rails2.rb
def default_process_types
    instrument "rails2.default_process_types" do
      web_process = bundler.has_gem?("thin") ?
        "bundle exec thin start -e $RAILS_ENV -p $PORT" :
        "bundle exec ruby script/server -p $PORT"

      process_types = super
      process_types["web"]     = web_process
      process_types["worker"]  = "bundle exec rake jobs:work" if rake.task("jobs:work").is_defined?
      process_types["console"] = "bundle exec script/console"
      process_types
    end
  end
# detects if this is a valid Rails 2 app
# @return [Boolean] true if it's a Rails 2 app
detects if this is a valid Rails 2 app
detects if this is a valid Rails 2 app
def default_process_types
    instrument "rails2.default_process_types" do
      web_process = bundler.has_gem?("thin") ?
        "bundle exec thin start -e $RAILS_ENV -p $PORT" :
        "bundle exec ruby script/server -p $PORT"
      process_types = super
      process_types["web"]     = web_process
      process_types["worker"]  = "bundle exec rake jobs:work" if rake.task("jobs:work").is_defined?
      process_types["console"] = "bundle exec script/console"
      process_types
    end
  end
def default_process_types instrument "rails2.default_process_types" do web_process = bundler . has_gem? ( "thin" ) ? "bundle exec thin start -e $RAILS_ENV -p $PORT" : "bundle exec ruby script/server -p $PORT" process_types = super process_types [ "web" ] = web_process process_types [ "worker" ] = "bundle exec rake jobs:work" if rake . task ( "jobs:work" ) . is_defined? process_types [ "console" ] = "bundle exec script/console" process_types end end
detects if this is a valid Rails 2 app
detects if this is a valid Rails 2 app
true if it's a Rails 2 app
true if it ' s a Rails 2 app
Boolean