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
### Keybase proof | |
I hereby claim: | |
* I am jcn on github. | |
* I am jcn (https://keybase.io/jcn) on keybase. | |
* I have a public key whose fingerprint is 8D3B 04F7 AE5F 3DDB 30C2 6491 A5F7 A010 1B1A 1CE5 | |
To claim this, I am signing this object: |
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
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 500 \ | |
--slave /usr/bin/ri ri /usr/bin/ri1.9.1 \ | |
--slave /usr/bin/irb irb /usr/bin/irb1.9.1 \ | |
--slave /usr/bin/gem gem /usr/bin/gem1.9.1 \ | |
--slave /usr/bin/rake rake /usr/bin/rake1.9.1 \ | |
--slave /usr/bin/bundle bundle /var/lib/gems/1.9.1/bin/bundle \ | |
--slave /usr/share/man/man1/ruby.1.gz ruby.1.gz /usr/share/man/man1/ruby1.9.1.1.gz \ | |
--slave /usr/share/man/man1/irb.1.gz irb.1.gz /usr/share/man/man1/irb1.9.1.1.gz \ | |
--slave /usr/share/man/man1/gem.1.gz gem.1.gz /usr/share/man/man1/gem1.9.1.1.gz \ | |
--slave /usr/share/man/man1/ri.1.gz ri.1.gz /usr/share/man/man1/ri1.9.1.1.gz \ |
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 parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /' | |
} | |
function breadcrumb() | |
{ | |
echo $1 | sed "s|^$HOME|~|" | awk -v n=$2 '{ | |
# Split the path into components | |
count = split($0, components, "/") |
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
>> OpenStruct.new.repository | |
=> nil | |
>> require 'vlad' | |
=> true | |
>> OpenStruct.new.repository | |
Vlad::ConfigurationError: Please specify the repository path via the :repository variable | |
from /opt/local/lib/ruby/gems/1.8/gems/vlad-1.3.2/lib/rake_remote_task.rb:353:in `mandatory' | |
from /opt/local/lib/ruby/gems/1.8/gems/vlad-1.3.2/lib/rake_remote_task.rb:310:in `call' | |
from /opt/local/lib/ruby/gems/1.8/gems/vlad-1.3.2/lib/rake_remote_task.rb:310:in `fetch' | |
from /opt/local/lib/ruby/gems/1.8/gems/vlad-1.3.2/lib/rake_remote_task.rb:363:in `protect_env' |
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
namespace :deploy do | |
remote_task :pending, :roles => :app do | |
output = run ["cd #{scm_path}", "cd repo", "echo #{source.revision(revision)}"].join(" && ") | |
revisions = `git log #{output.strip}..#{source.revision(revision)}` | |
puts "undeployed revisions:\n#{revisions}" | |
end | |
end |