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
| target=ENV['TARGET'] || "whatever" | |
| def helpful_helper(a) | |
| # do something extremely helpful | |
| puts "Visible? #{target}" | |
| end | |
| task :default do | |
| puts "My target is #{target}" | |
| helpful_helper("yo") |
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
| #!/bin/sh | |
| DRUSH_TGZ=drush-All-versions-4.1.tar.gz | |
| RESIN_TGZ=resin-4.0.14.tar.gz | |
| MYSQL_DRIVER_TGZ=mysql-connector-java-5.1.14.tar.gz | |
| function msg { | |
| echo | |
| echo -e "\033[31m $1 \033[39m" |
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
| class ApplicationController < ActionController::Base | |
| layout :layout_by_resource | |
| # choose different layout for devise | |
| def layout_by_resource | |
| if devise_controller? | |
| "users" | |
| else | |
| "application" |
NewerOlder