Skip to content

Instantly share code, notes, and snippets.

View mguterl's full-sized avatar

Mike Guterl mguterl

View GitHub Profile
class Cb2rm::CareerBuilder
require 'defaultDriver'
def session_token
@session_token ||= session.sessionToken
end
def session
@session ||= begin_session.cB_BeginSessionResult
end
michaelguterl@diminishing:~/www/rm-integrity$ rip list
rip: plugin not loaded (/usr/local/lib/ruby/site_ruby/1.8/rip/commands/hooks.rb)
-> undefined method `use' for module `Rip::Commands'
ripenv: integrity
bcrypt-ruby (2.0.5)
bob (b2f5af7)
bobette (c47b2d1)
data_objects (0.10.0)
michaelguterl@diminishing:~$ cat $RIPDIR/integrity/lib/bob.rb
require "fileutils"
require "pathname"
require "yaml"
require "logger"
require "time"
require "addressable/uri"
require "bob/buildable"
require "bob/builder"
michaelguterl@diminishing:~/www/rm-integrity$ cat init.rb
$LOAD_PATH.unshift(File.expand_path("/home/michaelguterl/.rip/integrity/lib"))
require "integrity"
Integrity.new(
:database_uri => "sqlite3:integrity.db",
:export_directory => File.expand_path("./builds"),
:log => File.expand_path("./bob.log"),
:build_all_commits => true
)
michaelguterl@diminishing:~/www/rm-integrity$ rip env use integrity && rip list
rip: plugin not loaded (/usr/local/lib/ruby/site_ruby/1.8/rip/commands/hooks.rb)
-> undefined method `use' for module `Rip::Commands'
ripenv: using integrity
rip: plugin not loaded (/usr/local/lib/ruby/site_ruby/1.8/rip/commands/hooks.rb)
-> undefined method `use' for module `Rip::Commands'
ripenv: integrity
/home/michaelguterl/.rip/active/lib/haml/version.rb:30:in `read': No such file or directory - /home/michaelguterl/.rip/active/lib/haml/../../VERSION (Errno::ENOENT)
from /home/michaelguterl/.rip/active/lib/haml/version.rb:30:in `version'
from /home/michaelguterl/.rip/active/lib/haml.rb:20
from ./lib/integrity.rb:9:in `require'
from ./lib/integrity.rb:9
from ./init.rb:2:in `require'
from ./init.rb:2
from config.ru:1:in `require'
from config.ru:1
from /home/michaelguterl/.rip/active/lib/rack/builder.rb:29:in `instance_eval'
Either the vistor clicked on the 'Stop' button in the web browser, or the visitor's connection has stalled and couldn't receive the data that Apache is sending to it. As a result, you will probably see a 'Broken Pipe' error in this log file. Please ignore it, this is normal. You might also want to increase Apache's TimeOut configuration option if you experience this problem often.
*** Exception Errno::EPIPE in Passenger RequestHandler (Broken pipe) (process 4732):
from /opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/rack/request_handler.rb:112:in `write'
from /opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/rack/request_handler.rb:112:in `process_request'
from /home/deploy/public_html/rm/releases/20091113154410/vendor/rails/actionpack/lib/action_controller/response.rb:155:in `each_line'
from /home/deploy/public_html/rm/releases/20091113154410/vendor/rails/actionpack/lib/action_controller/response.rb:155:in `ea
#!/bin/sh
set -u
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
APP_ROOT=/home/deploy/public_html/rm/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
ENV=production
# unicorn_rails -c /home/deploy/public_html/rm/current/config/unicorn.rb -E production -D
working_directory = '/home/deploy/public_html/rm/current'
rails_env = ENV['RAILS_ENV'] || 'production'
worker_processes 4
# Load rails into the master before forking workers
# for super-fast worker spawn times
preload_app true
#!/bin/sh
set -u
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
APP_ROOT=/home/deploy/public_html/rm/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
ENV=production