code
stringlengths
1
1.73M
language
stringclasses
1 value
require "my-assertions" require "svn/error" class SvnErrorTest < Test::Unit::TestCase def test_error_name Svn::Error.constants.each do |const_name| if /\A[A-Z0-9_]+\z/ =~ const_name and Svn::Error.const_get(const_name).is_a?(Class) class_name = Svn::Util.to_ruby_class_name(const...
Ruby
require "my-assertions" require "util" require "svn/core" require "svn/wc" require "svn/repos" require "svn/ra" class SvnWcTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.su...
Ruby
require "fileutils" require "pathname" require "my-assertions" class Time unless instance_methods.include?("to_int") alias to_int to_i end end require 'greek_tree' module SvnTestUtil def setup_default_variables test_dir = Pathname.new(File.dirname(__FILE__)) pwd = Pathname.new(Dir....
Ruby
require "util" require "svn/ra" class SvnRaTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Ra.version) end def test_uuid session = Svn::Ra::Sessi...
Ruby
require "test/unit" require "fileutils" module Test module Unit class TestCase class << self def inherited(sub) super sub.instance_variable_set("@priority_initialized", true) sub.instance_variable_set("@priority_table", {}) sub.priority :normal ...
Ruby
require 'test/unit/failure' require 'test/unit/error' module Test module Unit BACKTRACE_INFO_RE = /.+:\d+:in `.+?'/ class Failure alias_method :original_long_display, :long_display def long_display extract_backtraces_re = /^ \[(#{BACKTRACE_INFO_RE}(?:\n #{BACKTR...
Ruby
require "test/unit/ui/testrunnermediator" module Test module Unit module UI class TestRunnerMediator alias_method :original_run_suite, :run_suite def run_suite @notified_finished = false begin_time = Time.now original_run_suite rescue Interru...
Ruby
require 'test/unit/util/backtracefilter' module Test module Unit module Util module BacktraceFilter TEST_UNIT_EXT_PREFIX = File.dirname(__FILE__) alias_method :original_filter_backtrace, :filter_backtrace def filter_backtrace(backtrace, prefix=nil) original_resu...
Ruby
require "my-assertions" require "util" require "svn/core" require "svn/client" class SvnClientTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic(true) end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Client.v...
Ruby
require 'etc' require 'fileutils' module SvnTestUtil module Windows module Svnserve SERVICE_NAME = 'test-svn-server' class << self def escape_value(value) escaped_value = value.gsub(/"/, '\\"') # " "\"#{escaped_value}\"" end end def ser...
Ruby
require "util" require "svn/info" class SvnInfoTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_info file = "hello.txt" path = File.join(@wc_path, file) log = "test commit\nnew line" FileUtils.t...
Ruby
require "my-assertions" require "util" require "time" require "md5" require "svn/core" require "svn/fs" require "svn/repos" require "svn/client" class SvnFsTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_ver...
Ruby
require "util" require "stringio" require 'md5' require 'tempfile' require "svn/info" class SvnDeltaTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Delta.v...
Ruby
#!/usr/bin/env ruby require 'English' original_argv = ARGV.dup argv = [] found_include_option = false while (arg = original_argv.shift) if found_include_option $LOAD_PATH.unshift(arg) found_include_option = false else case arg when "-I", "--include" found_include_option = tru...
Ruby
#!/usr/bin/env ruby require 'English' original_argv = ARGV.dup argv = [] found_include_option = false while (arg = original_argv.shift) if found_include_option $LOAD_PATH.unshift(arg) found_include_option = false else case arg when "-I", "--include" found_include_option = tru...
Ruby
#!/usr/bin/env ruby # # svnlook.rb : a Ruby-based replacement for svnlook # ###################################################################### # # Copyright (c) 2000-2005 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as par...
Ruby
#!/usr/bin/env ruby # # svnshell.rb : a Ruby-based shell interface for cruising 'round in # the filesystem. # # Usage: ruby svnshell.rb REPOS_PATH, where REPOS_PATH is a path to # a repository on your local filesystem. # # NOTE: This program requires the Ruby readline extension. # See http://wiki...
Ruby
#!/usr/bin/env ruby require "erb" require "svn/client" include ERB::Util path = File.expand_path(ARGV.shift || Dir.pwd) html = <<-HEADER <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xm...
Ruby
#!/usr/bin/env ruby # # svnlook.rb : a Ruby-based replacement for svnlook # ###################################################################### # # Copyright (c) 2000-2005 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as par...
Ruby
#!/usr/bin/env ruby # # svnshell.rb : a Ruby-based shell interface for cruising 'round in # the filesystem. # # Usage: ruby svnshell.rb REPOS_PATH, where REPOS_PATH is a path to # a repository on your local filesystem. # # NOTE: This program requires the Ruby readline extension. # See http://wiki...
Ruby
#!/usr/bin/env ruby require "erb" require "svn/client" include ERB::Util path = File.expand_path(ARGV.shift || Dir.pwd) html = <<-HEADER <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xm...
Ruby
require 'active_record/permissions' require 'action_controller/restricted_access' # user auth in a restful universe # browser asks for a restricted resource # GET /posts/34 # # :401 # # Post resource returns status 401 "Unauthorized" # and displays an HTML login form containing error message like "You cannot REA...
Ruby
# error class for access control # class PermissionError < RuntimeError end
Ruby
require 'permission_error' # throw's itself and carrys all the information it # its to ask for permission class PermissionRequest attr_reader :continue attr_reader :target attr_reader :action def self.throw!(action, target) self.new(action, target).throw! end def initialize(action, target) @t...
Ruby
require 'permission_error' # filter for access controll # requires a #current_user method # # will # ActionController::Base.around_filter do |controller, action| begin # yield the action.. # catch and authorize any auth_requests # if auth_request = catch(:auth_request){action.call; nil} # che...
Ruby
require 'permission_request' # use AR namespace to reduce clashes # module ActiveRecord module Permissions # extend ActiveRecord::Base to add check user permission # before CRUD-type method calls # # NOTE: it would have been nice to use the ActiveRecord filters # system here, but there were ...
Ruby
# # load acts_as_friendly_param plugin and include the macro on # AR::Base # require 'acts_as_friendly_param' ActiveRecord::Base.send :include, ActiveRecord::Acts::FriendlyParam # load a filter to catch RecordMoved redirect errors # require 'friendly_filter' ActionController::Base.send :around_filter, ActionControlle...
Ruby
require 'iconv' require 'record_moved' # Thanks to Mephisto for the iconv character translation code # and kain for spotting the nested resources issues # and thanks to Obie Fernandez for blogging about overiding #to_param module ActiveRecord #:nodoc: module Acts #:nodoc: # Use this act if you want your mo...
Ruby
require 'record_moved' module ActionController # three_oh_one is a filter for your controller that catches RecordMoved # errors raised during an ActiveRecord#find method on acts_as_friendly_param # enabled models # # it will also remove trailing slashes from URLs and redirect them # # # add an around_f...
Ruby
# Error raised for mismatched titles # # idea is that you catch these errors and then perform a 301 # redirect to the correct page for the record stored in ex.record # class ActiveRecord::RecordMoved < ActiveRecord::RecordNotFound attr_reader :record def initialize(record) @record = record end end
Ruby
#!/usr/bin/env ruby class FakeSchema # emulation of schema definition method # module ActiveRecord class Schema def self.define(options={}, &blk) yield end end end def initialize(schema_code) @tables = {} eval(schema_code) end # yields a table def create_ta...
Ruby
#!/usr/bin/env ruby class FakeSchema # emulation of schema definition method # module ActiveRecord class Schema def self.define(options={}, &blk) yield end end end def initialize(schema_code) @tables = {} eval(schema_code) end # yields a table def create_ta...
Ruby
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../lib')) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.uniq! require 'yard-google-code' def init sections :header, [:method_signature, T('docstring')] end
Ruby
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../lib')) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.uniq! require 'yard-google-code' def init sections :header, [T('method_details')] end
Ruby
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../lib')) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.uniq! require 'yard-google-code' include Helpers::ModuleHelper def init sections :header, :box_info, :pre_docstring, T('docstring'), :children, :constant_summary, [T('docstring')], :inherited_con...
Ruby
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../lib')) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.uniq! require 'yard-google-code' include T('default/module') def init super sections.place(:subclasses).before(:children) sections.place(:constructor_details, [T('method_details')]).before(:metho...
Ruby
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../lib')) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.uniq! require 'yard-google-code' def init tags = Tags::Library.visible_tags - [:abstract, :deprecated, :note, :todo] create_tag_methods(tags - [:example, :option, :overload, :see]) sections :index...
Ruby
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../lib')) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.uniq! require 'yard-google-code' def init return if object.docstring.blank? && !object.has_tag?(:api) sections :index, [:private, :deprecated, :abstract, :todo, :note, :returns_void, :text], T('tags...
Ruby
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) $LOAD_PATH.uniq! YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/../templates' require 'yard/templates/template' require 'yard/templates/helpers/wiki_helper' ::YARD::Templates::Template.extra_includes |= [ YARD::Templates::Helper...
Ruby
# encoding: utf-8 require 'yard/serializers/file_system_serializer' module YARD module Serializers ## # Subclass required to get correct filename for the top level namespace. # :-( class WikiSerializer < FileSystemSerializer # Post-process the data before serializing. # Strip unnecessary...
Ruby
require 'rake' require 'rake/tasklib' require 'yard/rake/yardoc_task' require 'yard/cli/wiki' module YARD module Rake # The rake task to run {CLI::Yardoc} and generate documentation. class WikidocTask < YardocTask protected # Defines the rake task # @return [void] def define ...
Ruby
require 'yard' require 'yard/serializers/wiki_serializer' require 'yard/cli/yardoc' module YARD module CLI class Wiki < Yardoc # Creates a new instance of the commandline utility def initialize super @options = SymbolHash.new(false) @options.update( :format => :html,...
Ruby
require 'cgi' require 'rdiscount' module YARD module Templates::Helpers # The helper module for HTML templates. module WikiHelper include MarkupHelper # @return [String] escapes text def h(text) out = "" text = text.split(/\n/) text.each_with_index do |line, i| ...
Ruby
# -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = "google-api-client" s.version = "0.4.3" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Bob Aman"] s.date = "2012-03-27" s.description = "The Google API Ruby Client makes ...
Ruby
spec_dir = File.expand_path("..", __FILE__) lib_dir = File.expand_path("../lib", spec_dir) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.uniq!
Ruby
namespace :git do namespace :tag do desc 'List tags from the Git repository' task :list do tags = `git tag -l` tags.gsub!("\r", '') tags = tags.split("\n").sort {|a, b| b <=> a } puts tags.join("\n") end desc 'Create a new tag in the Git repository' task :create do c...
Ruby
require 'rake' require 'rake/clean' CLOBBER.include('doc', '.yardoc') CLOBBER.uniq! begin require 'yard' require 'yard/rake/yardoc_task' namespace :doc do desc 'Generate Yardoc documentation' YARD::Rake::YardocTask.new do |yardoc| yardoc.name = 'yard' yardoc.options = ['--verbose', '--marku...
Ruby
require 'rubygems/package_task' require 'rake/clean' CLOBBER.include('pkg') namespace :gem do GEM_SPEC = Gem::Specification.new do |s| unless s.respond_to?(:add_development_dependency) puts 'The gem spec requires a newer version of RubyGems.' exit(1) end s.name = PKG_NAME s.version = PK...
Ruby
require 'spec/rake/verify_rcov' require 'rake/clean' CLOBBER.include('coverage', 'specdoc') namespace :spec do Spec::Rake::SpecTask.new(:rcov) do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.spec_opts = ['--require', 'rubygems', '--color', '--format', 'specdoc'] if RCOV_ENABLED if `which rco...
Ruby
require 'google/api_client' require 'rake' require 'rake/clean' CLOBBER.include('wiki') CACHE_PREFIX = "http://www.gmodules.com/gadgets/proxy/container=default&debug=0&nocache=0/" namespace :wiki do desc 'Autogenerate wiki pages' task :supported_apis do output = <<-WIKI #summary The list of supported APIs ...
Ruby
namespace :metrics do task :lines do lines, codelines, total_lines, total_codelines = 0, 0, 0, 0 for file_name in FileList['lib/**/*.rb'] f = File.open(file_name) while line = f.gets lines += 1 next if line =~ /^\s*$/ next if line =~ /^\s*#/ codelines += 1 end...
Ruby
require 'rubygems' begin # We prefer to use the RDoc gem over the site version. gem 'rdoc' rescue Gem::LoadError end unless defined?(RDoc) require 'rdoc/task' require 'rake/clean' CLOBBER.include('doc', 'ri') CLOBBER.uniq! namespace :doc do desc 'Generate RDoc documentation' RDoc::Task.new do |rdoc| rdoc...
Ruby
lib_dir = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.uniq! require 'rubygems' require 'rake' gem 'rspec', '~> 1.2.9' begin require 'spec/rake/spectask' rescue LoadError STDERR.puts "Please install rspec:" STDERR.puts "sudo gem install rspec" exit(1) end require File.join(File...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
# Copyright 2010 Google Inc. # # 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 law or agreed to in writing,...
Ruby
require 'mongrel_cluster/recipes' # This defines a deployment "recipe" that you can feed to capistrano # (http://manuals.rubyonrails.com/read/book/17). It allows you to automate # (among other things) the deployment of your application. # ============================================================================= #...
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
# 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
# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb unless defined?(RAILS_ROOT) root_path = File.join(File.dirname(__FILE__), '..') unless RUBY_PLATFORM =~ /mswin32/ require 'pathname' root_path = Pathname.new(root_path).cleanpath(true).to_s end RAILS...
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
# Methods added to this helper will be available to all templates in the application. module ApplicationHelper end
Ruby
# Filters added to this controller will be run for all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base end
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
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/breakpointer'
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/runner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/benchmarker'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/benchmarker'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/profiler'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/performance/profiler'
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/destroy'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' 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/breakpointer'
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/console'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/reaper'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/spawner'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/reaper'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../config/boot' require 'commands/process/spawner'
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/generate'
Ruby
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../config/boot' require 'commands/server'
Ruby