As configured in my dotfiles.
start new:
tmux
start new with session name:
| # Save this file as lib/capistrano/tasks/git.cap | |
| namespace :git do | |
| desc 'Copy repo to releases' | |
| task create_release: :'git:update' do | |
| on roles(:all) do | |
| with fetch(:git_environmental_variables) do | |
| within repo_path do | |
| execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path | |
| end |
| lookupdir=src | |
| filetype=*.java | |
| #filetype=*.{html,php,htm} | |
| find=some_email_ids1 | |
| replace=some_email_ids2 | |
| echo "Files to be Replaced" | |
| grep -irl "$find" "$lookupdir" --include=$filetype | |
| grep -irl "$find" "$lookupdir" --include=$filetype | xargs sed -i "s/$find/$replace/g" |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |
As configured in my dotfiles.
start new:
tmux
start new with session name: