Permalink
Browse files

update for port

  • Loading branch information...
1 parent 2057dfd commit a788d9c5cf1e8f93b5da53d6e5798cc5ef1d3510 @jerrod committed Aug 27, 2013
Showing with 6 additions and 4 deletions.
  1. +2 −2 Blavosync.gemspec
  2. +4 −2 lib/blavosync/recipes/content_rsync.rb
View
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{blavosync}
- s.version = "0.5.0"
+ s.version = "0.5.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["jayronc"]
- s.date = %q{2012-09-17}
+ s.date = %q{2013-08-27}
s.description = %q{Sync a remote db and rsync content to your development environment. Useful for small teams and developers who are not able to do this manually.}
s.email = %q{jerrodblavos@mac.com}
s.extra_rdoc_files = [
@@ -15,8 +15,10 @@
if exists?(:user)
remote_user = fetch(:user)
end
-
- system("rsync -avz -e ssh '#{[remote_user, remote_domain].join("@")}:#{content_path}' '#{rails_root}/tmp/'")
+ if exists?(:port)
+ remote_port = "-p #{fetch(:user)}"
+ end
+ system("rsync -avz -e 'ssh #{remote_port}' '#{[remote_user, remote_domain].join("@")}:#{content_path}' '#{rails_root}/tmp/'")
end
desc <<-DESC

0 comments on commit a788d9c

Please sign in to comment.