Skip to content

Instantly share code, notes, and snippets.

View lusis's full-sized avatar

John E. Vincent lusis

View GitHub Profile
/usr/local/ruby/1.9.1pXXX
/usr/local/ruby/1.8.7pXXX
/usr/local/ruby/current symlink to /usr/local/ruby/<vm>
/etc/profile.d/ruby.sh -
export PATH=/usr/local/ruby/current/bin:$PATH
import configobj
class MockConfigObj(object):
def __init__(self):
# foo
self.config = {}
self.config['main'] = {}
self.config['main']['environment'] = 'QA'
self.config['main']['cobbler'] = '10.10.10.10'
hudson@jvx64:~/workspace/padrino-rubinius-test$ bundle exec rake test --trace
(in /var/lib/hudson/workspace/padrino-rubinius-test)
You need to install sdoc: gem install sdoc to correctly generate our api docs.
Rcov is only supported on MRI 1.8. You can safely ignore this message on other platforms
** Invoke test (first_time)
** Execute test
cd /var/lib/hudson/workspace/padrino-rubinius-test/padrino-core && /var/lib/hudson/.rvm/rubies/rbx-1.0.1-20100603/bin/rbx -S rake test
(in /var/lib/hudson/workspace/padrino-rubinius-test/padrino-core)
/var/lib/hudson/.rvm/rubies/rbx-1.0.1-20100603/bin/rbx -I"lib:test" "/var/lib/hudson/.rvm/gems/rbx-1.0.1-20100603@padrino-test-build/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/test_application.rb" "test/test_rendering.rb" "test/test_server.rb" "test/test_routing.rb" "test/test_dependencies.rb" "test/test_reloader_simple.rb" "test/test_mounter.rb" "test/test_logger.rb" "test/test_core.rb" "test/test_reloader_complex.rb" "test/test_router.rb"
Loaded suite /var/lib/hud
We couldn’t find that file to show.
def executable_on_path(binary)
@matches = []
ENV['PATH'].split(":").each do |path|
bintest = File.executable?("#{path}/#{binary}")
curtest = "#{path}/#{binary}"
@matches << curtest if bintest == true
end
case @matches.length
when 0 then
(in /home/jvincent/Development/padrino/official/padrino-cache)
/home/jvincent/.rvm/rubies/ruby-1.9.1-p378/bin/ruby -I"lib:test" "/home/jvincent/.rvm/gems/ruby-1.9.1-p378@testrefactor/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/test_padrino_cache.rb" "test/test_stores.rb"
Skipping redis tests
Loaded suite /home/jvincent/.rvm/gems/ruby-1.9.1-p378@testrefactor/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
......................F
Finished in 10.166931 seconds.
1) Failure:
test: PadrinoCache should delete from the cache. (TestPadrinoCache) [/home/jvincent/Development/padrino/official/padrino-cache/test/test_padrino_cache.rb:50]:
padrino g model account name:string surname:string email:string crypted_password:string salt:string role:string -r .
=> Located unlocked Gemfile for development
apply orms/activerecord
skip app/models/account.rb
create db/migrate/001_create_accounts.rb
padrino rake ar:migrate
=> Executing Rake ar:migrate ...
== CreateAccounts: migrating =================================================
-- create_table("accounts", {})
-> 0.0028s
@lusis
lusis / tmp.py
Created September 20, 2010 20:58
# vim: set ts=4 et sw=4 sts=4 sta filetype=python :
function(doc) {
var want = 'sshrsakey'
if (doc.doc_type == 'SystemRecord') {
if (doc.facter) {
var facter = doc.facter
for (var fact in facter) {
if (fact == want) {
emit(fact, doc.facter[fact])
}
}
try:
persistence = args.dbhost or local_config.get('couch', 'dsn')
except Exception, e:
log.warn("No dbhost provided")
persistence = None