code
stringlengths
1
1.73M
language
stringclasses
1 value
class Item < ActiveRecord::Base belongs_to :event has_many :votes has_many :participants, :dependent => :destroy @@children = [] def self.inherited(sub) @@children << sub end def self.children return @@children end def has_role?(person, role) self.participants.each do | part | ...
Ruby
class Vote < ActiveRecord::Base belongs_to :election belongs_to :person belongs_to :item end
Ruby
class Participant < ActiveRecord::Base belongs_to :person belongs_to :item end
Ruby
class LocationProposal < Item end
Ruby
class KeynoteProposal < Item end
Ruby
class Election < ActiveRecord::Base belongs_to :event has_many :votes @@children = [] def self.inherited(sub) @@children << sub end def self.children return @@children end def open? right_now = Time.now return true if right_now >= self.start_time && right_now <= self.end_time ...
Ruby
class LoginController < ApplicationController layout 'layouts/standard_layout' def index end def error flash[:notice] = "Invalid username or password" end def login svcs = YAML.load_file("#{RAILS_ROOT}/config/services.yml") client = DrupalClient.new(svcs["Drupal"]["host"], params[:use...
Ruby
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base # Pick a unique cookie name to distinguish our session data from others' session :session_key => '_Conference...
Ruby
class ElectionController < ApplicationController layout 'layouts/standard_layout' def index unless params[:id] redirect_to :action=>"list_elections" return end @election = Election.find(params[:id]) @page_title = "Election: #{@election.name}" @page_title = @election.name @event ...
Ruby
class ProfileController < ApplicationController layout 'layouts/standard_layout' def index @person = Person.find_by_username(session[:username]) end def edit unless params[:id] @person = (Person.find_by_username(session[:username])||Person.new) else @person = Person.find(params[:id]) ...
Ruby
class AdminController < ApplicationController layout "layouts/admin_layout" auto_complete_for :person, :last_first def index redirect_to :action=>"menu" if session[:event_id] @conferences = Conference.find(:all) end def menu end def set_event_id session[:event_id] = para...
Ruby
class ConferenceController < ApplicationController layout "layouts/standard_layout" def index unless params[:id] redirect_to :action=>"list_conferences" return end @conf = Conference.find(params[:id]) @page_title = "#{@conf.name} Home" end def events unless params[:id] r...
Ruby
ActionController::Routing::Routes.draw do |map| # The priority is based upon order of creation: first created -> highest priority. # Sample of regular route: # map.connect 'products/:id', :controller => 'catalog', :action => 'view' # Keep in mind you can assign values other than :controller and :action # ...
Ruby
# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) unless defined?(Rails::Initializer) if File.directory?("#{RAILS_ROOT}/vendor/rails") require "#{RAILS_ROOT}/vendor/rails/railties/lib/init...
Ruby
# Be sure to restart your web server when you modify this file. # Uncomment below to force Rails into production mode when # you don't control web/app server and can't set it the proper way # ENV['RAILS_ENV'] ||= 'production' # Specifies gem version of Rails to use when vendor/rails is not present RAILS_GEM_VERSION =...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # The production environment is meant for finished, "live" apps. # Code is not reloaded between requests config.cache_classes = true # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Full error repor...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the webserver when you make code changes. config.ca...
Ruby
# Settings specified here will take precedence over those in config/environment.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between...
Ruby
# Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require(File.join(File.dirname(__FILE__), 'config', 'boot')) require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'tasks/rails'
Ruby
# # To change this template, choose Tools | Templates # and open the template in the editor. class DrupalClient def initialize(host, username, password) @host = host @username = username @password = password @uri = URI.parse(@host) end def login res = Net::HTTP.post_form(@uri,{'edi...
Ruby
NOT READY YET #!/usr/bin/ruby require 'rubygems' require 'google/api_client' require 'oauth/oauth_util' client = Google::APIClient.new youtube = client.discovered_api('youtube', 'v3alpha') auth_util = CommandLineOAuthHelper.new('https://www.googleapis.com/auth/youtube') client.authorization = auth_util.authorize() ...
Ruby
#!/usr/bin/ruby require 'rubygems' require 'google/api_client' # oauth/oauth_util is not part of the official Ruby client library. # Get it at http://samples.google-api-ruby-client.googlecode.com/git/oauth/oauth_util.rb require 'oauth/oauth_util' require 'trollop' # This code assumes that there's a client_secrets.j...
Ruby
#!/usr/bin/ruby require 'rubygems' require 'google/api_client' # oauth/oauth_util is not part of the official Ruby client library. # Get it at http://samples.google-api-ruby-client.googlecode.com/git/oauth/oauth_util.rb require 'oauth/oauth_util' # A limited OAuth 2 access scope that allows for read-only access. YO...
Ruby
#!/usr/bin/ruby require 'rubygems' require 'google/api_client' # oauth/oauth_util is not part of the official Ruby client library. # Get it at http://samples.google-api-ruby-client.googlecode.com/git/oauth/oauth_util.rb require 'oauth/oauth_util' require 'trollop' # An OAuth 2 access scope that allows for full read...
Ruby
require 'google/api_client' require 'google/api_client/client_secrets' require 'json' require 'launchy' require 'thin' RESPONSE_HTML = <<stop <html> <head> <title>OAuth 2 Flow Complete</title> </head> <body> You have successfully completed the OAuth 2 flow. Please close this browser window and return to ...
Ruby
#!/usr/bin/ruby require 'rubygems' require 'google/api_client' require 'trollop' # Set DEVELOPER_KEY to the "API key" value from the "Access" tab of the # Google APIs Console <http://code.google.com/apis/console#access> # Please ensure that you have enabled the YouTube Data API for your project. DEVELOPER_KEY = "REP...
Ruby
#!/usr/bin/ruby require 'rubygems' require 'google/api_client' # oauth/oauth_util is not part of the official Ruby client library. # Get it at http://samples.google-api-ruby-client.googlecode.com/git/oauth/oauth_util.rb require 'oauth/oauth_util' # An OAuth 2 access scope that allows for full read/write access. YOU...
Ruby
#!/usr/bin/ruby # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
Ruby
require 'google/api_client' require 'google/api_client/client_secrets' require 'json' require 'launchy' require 'thin' RESPONSE_HTML = <<stop <html> <head> <title>OAuth 2 Flow Complete</title> </head> <body> You have successfully completed the OAuth 2 flow. Please close this browser window and return to ...
Ruby
#!/usr/bin/ruby require 'benchmark' Benchmark.bm do |x| [1, 2, 5, 10, 20].each do |thread_count| x.report("#{thread_count} threads:") do system('./analyticsdump.rb', '--threads', thread_count.to_s) end sleep(60) end end
Ruby
#!/usr/bin/ruby require 'rubygems' require 'google/api_client' require 'logger' require 'oauth/oauth_util' require 'sqlite3' require 'thread' require 'trollop' YOUTUBE_API_READONLY_SCOPE = 'https://www.googleapis.com/auth/youtube.readonly' YOUTUBE_ANALYTICS_API_SCOPE = 'https://www.googleapis.com/auth/yt-analytics.re...
Ruby
require 'google/api_client' require 'google/api_client/client_secrets' require 'json' require 'launchy' require 'thin' RESPONSE_HTML = <<stop <html> <head> <title>OAuth 2 Flow Complete</title> </head> <body> You have successfully completed the OAuth 2 flow. Please close this browser window and return to ...
Ruby
#!/usr/bin/ruby # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
Ruby
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
Ruby
module TeamSchnitzel module ConfigurationFu def self.load_application_configuration_file data = YAML::load(ERB.new((IO.read("#{RAILS_ROOT}/config/application.yml"))).result) rescue nil if data return data[RAILS_ENV] || data['default'] end end end end Kernel::APP_CONFIG = TeamSchni...
Ruby
#! /usr/bin/ruby require 'database' require 'server' require 'agent' USAGE = <<EOS config-manager -- tool for remotely managing config files. config-manager [-s] [-a] [-k] -s Run as server -a Run as agent -k Kill off all config-manager processes EOS def command_line help = true if (ARGV[0] == '-h'.do...
Ruby
require 'rubygems' require 'open4' require 'drb' class SharedFile include DRb::DRbUndumped #this fixes DRb's problems unmarshalling these objects. attr_accessor :path, :tags, :content def initialize(path, tags) @path = path @tags = tags @content = SharedFile.fetch_content(@path) end def self.fetc...
Ruby
require 'active_record' class RemoteFile < ActiveRecord::Base belongs_to :remote_agent has_and_belongs_to_many :tags #TODO seems like our remote agent needs access to its agent interface so we can make this just the content= method and wont have to pass that agent interface in. def update_content (agent, new_co...
Ruby
require 'rubygems' require 'test/unit' require 'mocha' require 'agent' require 'server' require 'socket' require 'database' require 'remote_agent' require 'fileutils' include FileUtils class TestEndToEnd < Test::Unit::TestCase def setup Database.test_connect SharedFile.stubs(:fetch_content).returns(mock()) ...
Ruby
require 'rubygems' require 'test/unit' require 'mocha' require 'agent' require 'server' require 'socket' require 'database' require 'remote_agent' require 'fileutils' include FileUtils class TestEndToEnd < Test::Unit::TestCase def setup Database.test_connect SharedFile.stubs(:fetch_content).returns(mock()) ...
Ruby
require 'rubygems' require 'test/unit' require 'mocha' require 'agent_interface' class TestAgentInterface < Test::Unit::TestCase def setup @agent = stub_everything() @path = '/path/to/file' @shared_file = stub_everything() end def test_all_files_published s_interface = mock() s_interface.ex...
Ruby
require 'rubygems' require 'test/unit' require 'config_reader' require 'mocha' class TestConfigReader < Test::Unit::TestCase def test_we_read_in SharedFile.stubs(:fetch_content).returns(mock()) reader = ConfigReader.new('agent_config.yml') assert_equal('/path/to/config', reader.shared_files.first.path) ...
Ruby
require 'rubygems' require 'test/unit' require 'mocha' require 'server_interface' require 'database' class TestServerInterface < Test::Unit::TestCase def setup @hostname = 'testing_agent' Database.test_connect @server = ServerInterface.new(stub_everything()) @server.register(@hostname, '1234') @s...
Ruby
require 'shared_file' require 'yaml' class ConfigReader attr_reader :port, :shared_files, :server def initialize(config_file) yaml_file = get_content(config_file) @port = yaml_file["agent port"] @server = yaml_file["server url"] @shared_files = [] yaml_file["shared files"].each do |file| ...
Ruby
require 'drb' require 'config_reader' require 'agent_interface' require 'socket' require 'singleton' class Agent include Singleton attr_reader :host, :port, :server, :interface def initialize() reader = ConfigReader.new('agent_config.yml') @host = Socket.gethostname @port = reader.port @server...
Ruby
#! /usr/bin/ruby require 'database' require 'server' require 'agent' USAGE = <<EOS config-manager -- tool for remotely managing config files. config-manager [-s] [-a] [-k] -s Run as server -a Run as agent -k Kill off all config-manager processes EOS def command_line help = true if (ARGV[0] == '-h'.do...
Ruby
require 'active_record' class RemoteAgent < ActiveRecord::Base has_many :remote_files end
Ruby
require 'active_record' class Tag < ActiveRecord::Base has_and_belongs_to_many :remote_files end
Ruby
require 'drb' require 'server_interface' require 'singleton' class Server include Singleton def initialize @interface = ServerInterface.new(self) end def start DRb.start_service("druby://localhost:6790", @interface) end def daemon DRb.thread.join end def stop DRb.stop_service end ...
Ruby
include Enumerable class AgentInterface def initialize(agent, files) @files = files @agent = agent end def publish_to_server server = @agent.server_interface @files.each{ |file| server.publish(file, @agent.host) } end def find_file(path) #TODO should be private @files.find { |file| f...
Ruby
require 'active_record' ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define do create_table 'remote_agents', :force => true do |t| t.column :id, :integer t.column :host, :string t.column :port, :string end end ActiveRecord::Schema.define do create_table 'remote_files', ...
Ruby
require 'rubygems' require 'active_record' require 'fileutils' include FileUtils class Database SCHEMA_FILE = 'schema.rb' def self.connect ActiveRecord::Base.establish_connection( :adapter => 'sqlite3', :dbfile => ':memory:' ) unless ActiveRecord::Base.connected? end ...
Ruby
require 'remote_agent' require 'remote_file' require 'tag' class ServerInterface def initialize(server) @server = server end def register(host, port) agent = RemoteAgent.new(:host => host, :port => port) agent.save end def publish(shared_file, host) agent = RemoteAgent.find_by_host(host) ...
Ruby
require 'fileutils' require 'rubygems' require 'rake/testtask' require 'ftools' require 'database' include FileUtils task :default => :test desc "Run tests" task :test => :dbinit do |t| Rake::TestTask.new do |t| t.test_files = FileList['test/*test*.rb'] t.verbose = true end end desc "cre...
Ruby
# $Id$ # John Hurst (jbhurst@attglobal.net) # 2007-03-27 # # Copyright 2007 Wiley Publishing Inc, Indianapolis, Indiana, USA. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
Ruby
# $Id$ # John Hurst (jbhurst@attglobal.net) # 2007-03-27 # # Copyright 2007 Wiley Publishing Inc, Indianapolis, Indiana, USA. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
Ruby
# $Id$ # John Hurst (jbhurst@attglobal.net) # 2007-03-27 # # Copyright 2007 Wiley Publishing Inc, Indianapolis, Indiana, USA. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
Ruby
#!/usr/bin/ruby -w =begin /*************************************************************************** * Copyright (C) 2008, Paul Lutus * * * * This program is free software; you can redistribute...
Ruby
#!/usr/bin/ruby -w =begin /*************************************************************************** * Copyright (C) 2008, Paul Lutus * * * * This program is free software; you can redistribute...
Ruby
#!/usr/bin/env ruby file_ip = File.new("input.csv", "w") pcnt=0 11.times do |n| 11.times do |m| file_ip.puts "#{n},#{m},#{n+m}" pcnt+=1 end end
Ruby
#!/usr/bin/env ruby file_ip = File.new("input.csv", "w") pcnt=0 11.times do |n| 11.times do |m| file_ip.puts "#{n},#{m},#{n+m}" pcnt+=1 end end
Ruby
#!/usr/bin/ruby -w =begin /*************************************************************************** * Copyright (C) 2008, Paul Lutus * * * * This program is free software; you can redistribute...
Ruby
#!/usr/bin/ruby -w =begin /*************************************************************************** * Copyright (C) 2008, Paul Lutus * * * * This program is free software; you can redistribute...
Ruby
#!/usr/bin/ruby # Gives you information about the most recent crash for each application # that has crashed within the last 2 days $LogDir=ENV['HOME'] + '/Library/Logs/CrashReporter' $Days=1 $StackCount=5 files=`find #$LogDir -mtime -#$Days -type f | grep -v synergy` files.each { |filename| filename.chop! rec...
Ruby
#!/usr/bin/ruby # Gives you information about the most recent crash for each application # that has crashed within the last 2 days $LogDir=ENV['HOME'] + '/Library/Logs/CrashReporter' $Days=1 $StackCount=5 files=`find #$LogDir -mtime -#$Days -type f | grep -v synergy` files.each { |filename| filename.chop! rec...
Ruby
#!/usr/bin/ruby # lasthit, part of iExploder # # Shows statistics about recent agents that have tested with iExploder. # It takes all or part of an apache logfile via stdin, and outputs a list # of all the agents who tested within that section, what their last test # was, and how many tests they have done. # The use...
Ruby
#!/usr/bin/ruby # showtest.rb - simple CLI interface to grab a testcase ##################### # # Copyright (c) 2006 Thomas Stromberg <thomas%stromberg.org> # # This software is provided 'as-is', without any express or implied warranty. # In no event will the authors be held liable for any damages arising from the # u...
Ruby
#!/usr/bin/ruby # showtest.rb - simple CLI interface to grab a testcase ##################### # # Copyright (c) 2006 Thomas Stromberg <thomas%stromberg.org> # # This software is provided 'as-is', without any express or implied warranty. # In no event will the authors be held liable for any damages arising from the # u...
Ruby
#!/usr/bin/ruby # lasthit, part of iExploder # # Shows statistics about recent agents that have tested with iExploder. # It takes all or part of an apache logfile via stdin, and outputs a list # of all the agents who tested within that section, what their last test # was, and how many tests they have done. # The use...
Ruby
# iExploder - Generates bad HTML files to perform QA for web browsers. # Developed for the Mozilla Foundation. ##################### # # Copyright (c) 2006 Thomas Stromberg <thomas%stromberg.org> # # This software is provided 'as-is', without any express or implied warranty. # In no event will the authors be held liab...
Ruby
#!/usr/bin/ruby # iExploder - Generates bad HTML files to perform QA for web browsers. # Developed for the Mozilla Foundation. ##################### # # Copyright (c) 2006 Thomas Stromberg <thomas%stromberg.org> # # This software is provided 'as-is', without any express or implied warranty. # In no event will the auth...
Ruby
#!/usr/bin/ruby # iExploder - Generates bad HTML files to perform QA for web browsers. # Developed for the Mozilla Foundation. ##################### # # Copyright (c) 2006 Thomas Stromberg <thomas%stromberg.org> # # This software is provided 'as-is', without any express or implied warranty. # In no event will the auth...
Ruby
#!/usr/bin/ruby # iExploder - Generates bad HTML files to perform QA for web browsers. # Developed for the Mozilla Foundation. ##################### # # Copyright (c) 2006 Thomas Stromberg <thomas%stromberg.org> # # This software is provided 'as-is', without any express or implied warranty. # In no event will the auth...
Ruby
#!/usr/bin/ruby # iExploder - Generates bad HTML files to perform QA for web browsers. # Developed for the Mozilla Foundation. ##################### # # Copyright (c) 2006 Thomas Stromberg <thomas%stromberg.org> # # This software is provided 'as-is', without any express or implied warranty. # In no event will the auth...
Ruby
# Configuration for iExploder.. not generally tuned. $HTML_MAX_TAGS = 96; $HTML_MAX_ATTRS = 4; $CSS_MAX_PROPS = 5;
Ruby
#!/usr/bin/ruby require 'find' require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: clean-header-guards [options]" opts.on("--prefix [PREFIX]", "Append a header prefix to all guards") do |prefix| options[:prefix] = prefix end end.parse! IgnoredFilenamePatterns = [ # ignore ...
Ruby
#!/usr/bin/ruby require 'find' require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: clean-header-guards [options]" opts.on("--prefix [PREFIX]", "Append a header prefix to all guards") do |prefix| options[:prefix] = prefix end end.parse! IgnoredFilenamePatterns = [ # ignore ...
Ruby
# Require any additional compass plugins here. # Set this to the root of your project when deployed: http_path = "/" css_dir = "css" sass_dir = "sass" images_dir = "img" javascripts_dir = "js" fonts_dir = "font" output_style = :nested environment = :development # To enable relative paths to assets via compass helper...
Ruby
class CreateDecorates < ActiveRecord::Migration def self.up create_table :decorates do |t| t.string :charset, :name, :decorate_type, :url t.text :source t.timestamps end end def self.down drop_table :decorates end end
Ruby
class CreateSections < ActiveRecord::Migration def self.up create_table :sections do |t| t.string :name, :code t.text :description t.timestamps end end def self.down drop_table :sections end end
Ruby
class CreateDecorateDocuments < ActiveRecord::Migration def self.up create_table :decorate_documents do |t| t.integer :decorate_id, :document_id t.timestamps end end def self.down drop_table :decorate_documents end end
Ruby
class AddConfigTable < ActiveRecord::Migration def self.up create_table :config do |t| t.references :associated, :polymorphic => true t.string :namespace t.string :key, :limit => 40, :null => false t.text :value end end def self.down drop_...
Ruby
class CreateDocuments < ActiveRecord::Migration def self.up create_table :documents do |t| t.integer :section_id t.string :subject, :code t.text :body_html, :body_textile t.timestamps end end def self.down drop_table :documents end end
Ruby
class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :persistence_token, :last_login_ip, :current_login_ip t.string :login, :default => nil, :null => true t.string :crypted_password, :default => nil, :null => true t.string :password_salt, :default => ...
Ruby
ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help' class Test::Unit::TestCase # Transactional fixtures accelerate your tests by wrapping each test method # in a transaction that's rolled back on completion. This ensures that the # test datab...
Ruby
#!/usr/bin/ruby1.8 require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like: # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired...
Ruby
#!/usr/bin/ruby1.8 # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log #...
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" require 'commands/about'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/generate'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/plugin'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/console'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/dbconsole'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" require 'commands/about'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/dbconsole'
Ruby