Supondo que se está no branch de trabalho chamado work
git checkout master
git pull origin master
git checkout work
require 'digest/sha1' | |
require 'fileutils' | |
directories = [ | |
"SOURCE DIR 1", | |
"SOURCE DIR 2" | |
] | |
files = {} | |
directories.each do |dir_name| | |
puts "Scanning Directory: #{dir_name} " | |
Dir.glob("#{dir_name}/**/*.*") do |file_name| |
;var FooBar = (function($, window, document, undefined) { | |
'use strict'; | |
/** | |
* Constructor method | |
* | |
* @author Gustavo Franco | |
* @since 2013-06-27 | |
*/ | |
function FooBar() { |
# www.guepardolabs.com -> guepardolabs.com | |
# www.guepardolabs.com.br -> guepardolabs.com | |
# www.guepardolabs.net -> guepardolabs.com | |
# guepardolabs.com.br -> guepardolabs.com | |
# guepardolabs.net -> guepardolabs.com | |
require 'rack-rewrite' | |
use Rack::Rewrite do | |
r301 %r{.*}, 'http://guepardolabs.com$&', :if => Proc.new {|rack_env| | |
rack_env['SERVER_NAME'] != 'guepardolabs.com' | |
} |