This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set ts=4 et sw=4 sts=4 sta filetype=python : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
persistence = args.dbhost or local_config.get('couch', 'dsn') | |
except Exception, e: | |
log.warn("No dbhost provided") | |
persistence = None |