-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to push gem to gems.globalitcreations.com
- Loading branch information
Scott Barr
committed
Mar 26, 2010
1 parent
c6bc58b
commit 7442b7a
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|