capistrano-rsync-local 2.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d61cfcaba0fd9157085b08907d67b0ad584f637a
4
- data.tar.gz: 21bf85381764e4dc4b0bf54f924907ded4f8d684
3
+ metadata.gz: 4d41652ac200a22f882d88cddedf6c28c9bb52b9
4
+ data.tar.gz: 787b6b089fa20a7f8841324d57f30a4d467f0b25
5
5
  SHA512:
6
- metadata.gz: 8138f91c8695c3f4dc21853798d15d85300755251c870d2a03c457c62f3659452058a9a99af902ae488eb1c5138cb56e4076812e748f4aa6a3e66bad3a634c0c
7
- data.tar.gz: 46ed927ebad4b994fe1a5c1b46366ba4e0a1ffa859d4709d21371ce46f4804f1dec014543d3e3e8cfa0cb251f799e7755c704a2a7417e5eb26825ad294ce673c
6
+ metadata.gz: 72d6b158bbf6a1e743bc8b1002e75e582b6bc7023569b27e834f1dd0352b20332ccf07d189d7da3db489d652dde3b2e5c49aa910500cf3be6be226784d0cf84f
7
+ data.tar.gz: 5397c4b75d3e36cbe959949e9c6ad2f8b937019a2293699c75961b959e31a3948ef73886e49691d89beec370fe8130d1e0695cdeddbf351ff423f977dd8c49c5
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'capistrano-rsync-local'
3
- gem.version = '2.0'
3
+ gem.version = '2.0.1'
4
4
  gem.homepage = 'https://github.com/tonkonogov/capistrano-rsync'
5
5
  gem.summary = <<-end.strip.gsub(/\s*\n\s*/, " ")
6
6
  Deploy with Rsync from any local (or remote) repository.
@@ -5,7 +5,10 @@ module Capistrano
5
5
  attr_reader :context
6
6
 
7
7
  def get_current_revision_cmd
8
- "svn info | grep '^Revision:' | sed -e 's/^Revision: //'"
8
+ temp = "svn info #{context.fetch(:version_url)}"
9
+ temp += " --username #{context.fetch(:rsync_scm_username)}" if context.fetch(:rsync_scm_username)
10
+ temp += " --password #{context.fetch(:rsync_scm_password)}" if context.fetch(:rsync_scm_password)
11
+ temp + " | grep 'Last Changed Rev:' | sed -e 's/Last Changed Rev: //'"
9
12
  end
10
13
 
11
14
  def run_cmd(list = [])
@@ -35,6 +35,8 @@ namespace :rsync do
35
35
 
36
36
  # Scm to use.
37
37
  set :rsync_scm, "git"
38
+
39
+ set :version_url, fetch(:repo_url)
38
40
 
39
41
  # Stage is used on your local machine for rsyncing from.
40
42
  set :rsync_stage, "tmp/deploy"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rsync-local
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.0'
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Tonkonogov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano