Skip to content

Commit

Permalink
Updated to push gem to gems.globalitcreations.com
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Barr committed Mar 26, 2010
1 parent c6bc58b commit 7442b7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ APP_URL = "http://github.com/scottbarr/sms_xchange"
APP_DESCRIPTION = "Ruby client for the smsxchange.com service."
AUTHOR_NAME = "Scott Barr"
AUTHOR_EMAIL = "[email protected]"
GEM_HOST = "gems.globalitcreations.com"

#
# Create a version for this build from the config.yml and the BUILD_NUMBER
Expand Down Expand Up @@ -52,10 +53,10 @@ task :publish => [:test, :clean, :manifest, :repackage, :upload]
task :upload do
version = get_version

retval = system "rsync -av pkg/#{APP_NAME}-#{version}.gem git.globalitcreations.com:/var/www/gems.globalitcreations.com/gems/"
retval = system "rsync -av pkg/#{APP_NAME}-#{version}.gem #{GEM_HOST}:/var/www/gems.globalitcreations.com/gems/"
Exception.new("rsync of gem failed") unless retval

retval = system "ssh git.globalitcreations.com 'cd /var/www/gems.globalitcreations.com/ ; gem generate_index'"
retval = system "ssh #{GEM_HOST} 'cd /var/www/gems.globalitcreations.com/ ; gem generate_index'"
Exception.new("regenerating gem index failed") unless retval
end

Expand Down

0 comments on commit 7442b7a

Please sign in to comment.