Skip to content

Instantly share code, notes, and snippets.

~/development/clients/importal/pinkbox/management |develop: --| $ rake all_tests --trace(in /Users/james/development/clients/importal/pinkbox/management)
localgems Gems
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/localgems/gems
livegems Gems
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/livegems/gems
** Invoke all_tests (first_time)
** Execute all_tests
(in /Users/james/development/clients/importal/pinkbox/management)
localgems Gems
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/localgems/gems
RAILS_ENV=test rake management:db:schema:load --trace(in /Users/james/development/clients/importal/pinkbox/management)
localgems Gems
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/localgems/gems
livegems Gems
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/livegems/gems
** Invoke management:db:schema:load (first_time)
** Invoke gems (first_time)
** Execute gems
localgems Gems
mkdir -p /Users/james/development/clients/importal/pinkbox/management/etc/localgems/gems
~/development/apps/pinkbox/management |develop: 4989m| $ cd $PINKBOX_ROOT/management ; rake startup --trace
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
localgems Gems
mkdir -p /Users/james/development/apps/pinkbox/management/etc/localgems/gems
livegems Gems
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Module#mkdir_p called at /Users/james/development/apps/pinkbox/management/dev_util/tasks/rake_helper.rb:96:in `add_gems'
mkdir -p /Users/james/development/apps/pinkbox/management/etc/livegems/gems
** Invoke startup (first_time)
@dreamr
dreamr / Article
Created June 22, 2011 01:06
More link summary issue example
---
title: RubySlippers, the smartest blogging engine in all of Oz!
date: 21/06/2011
tags: announcements
I just wanted to shout a quick _hello world_. Nothing more to read here.
~
jokelly@pinkbox:~/development/apps/pinkbox/management$ rake recreate_dbs config:everything_runs_locally
(in /home/jokelly/development/apps/pinkbox/management)
localgems Gems
mkdir -p /home/jokelly/development/apps/pinkbox/management/etc/localgems/gems
WARNING: did not load management:db tasks because pinkbox_common gem was not found in
jokelly@pinkbox:~/development/apps/pinkbox/management$
@dreamr
dreamr / article.rb
Created July 1, 2011 00:28
A model that can get its ORM from AR or DM - Work in progress
@@config = {
:use_adapter => :data_mapper
}
# Ideally I would like to be able to mix in ActiveRecord or DataMapper
# to get a ORM layer. Can't get ActiveRecord to work because it inherits
# rather then mixes in
class Article
@dreamr
dreamr / LICENSE
Created July 7, 2011 05:15 — forked from milyoni/LICENSE
heroku autotag deploy scripts
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEA
task "demo:deploy:prepare" do
# run our tests
out = `rake test`
unless out =~ /0 failures, 0 errors/
raise "Oh Snap! A test seems to have failed! #{out}"
end
# remove old tag, this can fail and it is ok
if (total_cantilever < ZepCalculationEngine::CONFLICT_ZONE)
left_cantilever = (total_cantilever + self.rafter_spacing) / 2
if left_cantilever == 20.55
puts "total cantilever: #{total_cantilever}"
puts "left cantilever: #{left_cantilever}"
puts "right cantilever: #{right_cantilever}"
puts "1st branch"
end
elsif (total_cantilever > (self.foot_spacing/3)*2)
left_cantilever = (total_cantilever - self.rafter_spacing) / 2
alias contribs='git log | grep Author | sort | uniq'
alias csa='cap staging deploy:auto_migrate'
alias csd='cap staging deploy'
alias csdd='cap staging deploy:do_stuff'
alias mt='shopt -s extglob && mate !(@(cache|db|log|tmp|vendor|script))'
alias b="bundle"
alias bi="b install --path vendor"