Skip to content

Instantly share code, notes, and snippets.

View leehambley's full-sized avatar

Lee Hambley leehambley

View GitHub Profile
leehambleys-imac ~ $ sudo gem install --source http://gems.github.com/ chriseppstein-compass
ERROR: Error installing chriseppstein-compass:
chriseppstein-compass requires echoe (>= 0, runtime)
leehambleys-imac ~ $ sudo gem install echoe
Successfully installed echoe-3.1.1
1 gem installed
Installing ri documentation for echoe-3.1.1...
Installing RDoc documentation for echoe-3.1.1...
leehambleys-imac ~ $ sudo gem install --source http://gems.github.com/ chriseppstein-compass
Successfully installed chriseppstein-compass-0.5.1
# From the GitHub guide
parse_git_branch() {
branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'`
if [ "$branch" = "(master)" ] ; then
branch="$(tput setaf 1)${branch}$(tput sgr0)"
elif [ "$branch" != '' ] ; then
branch="${branch}"
fi
echo $branch
}
(in /Users/<username>/projects/example)
/Users/<username>/projects/example/app/controllers/basket_items_controller.rb:10: warning: don't put space before argument parentheses
./features/step_definitions/basket/basket_steps.rb:11: warning: parenthesize argument(s) for future version
./features/step_definitions/basket/basket_steps.rb:21: warning: parenthesize argument(s) for future version
./features/step_definitions/basket/basket_steps.rb:53: warning: parenthesize argument(s) for future version
./features/step_definitions/selenium_steps.rb:7: warning: parenthesize argument(s) for future version
...............................----.....................................---...
..................................----......-----......----......------.......
..............................................................................
...........................................................-------...
# 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 test runs. Don't rely on the data there!
config.cache_classes = true
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
before "deploy:rollback:revision", "deploy:rollback_database"
desc "Rolls back database to migration level of the previously deployed release"
task :rollback_database, :roles => :db, :only => { :primary => true } do
if releases.length < 2
abort "could not rollback the code because there is no prior release"
else
rake = fetch(:rake, "rake")
rails_env = fetch(:rails_env, "production")
migrate_env = fetch(:migrate_env, "")
[10:15:59] Getting the HEAD of 'git@dare.********.net:/var/git/mvor-ci.git' at 'master'
[10:15:59] Building (master) of mvor-ci in/usr/local/integrity/builds/varmvor-ci-master using Git
[10:15:59] Cloning git@dare.setfire.net:/var/git/mvor-ci.git to /usr/local/integrity/builds/varmvor-ci-master
[10:15:59] Checking-out origin/master
[10:15:59] Pull-ing in /usr/local/integrity/builds/varmvor-ci-master
[10:15:59] Checking-out
[10:15:59] Running `cp config/database.yml{.example,} && rake db:create:all && rake db:migrate && take db:test:clone && rake features && rake spec` in /usr/local/integrity/builds/varmvor-ci-master
task :link_server_local_configuration_file_from_installations, :roles => :ui do
run <<-EOB
if [ -e "#{current_path}/installations/#{installation_name}/`hostname`.local.cfg" ];
then {
#{sudo} cp #{current_path}/installations/#{installation_name}/`hostname`.local.cfg #{deploy_to}../#{catalog_dir}/otb/local.cfg;
};
fi
EOB
end
We couldn’t find that file to show.
[leeh@dare ~]$ sudo gem install -v=2.3.2 rails
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Connection timed out - connect(2) (http://gems.rubyforge.org/gems/activerecord-2.3.2.gem)
[leeh@dare ~]$ sudo gem install -v=2.3.2 rails
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Connection timed out - connect(2) (http://gems.rubyforge.org/gems/actionmailer-2.3.2.gem)
[leeh@dare ~]$ sudo gem install -v=2.3.2 rails
[leeh@dare ~]$ sudo gem install flay flog rcov reek roodi chronic
Successfully installed flay-1.2.1
Successfully installed flog-2.1.0
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Connection timed out - connect(2) (http://gems.rubyforge.org/gems/rcov-0.8.1.2.0.gem)