capistrano-scm-local 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
- capistrano-scm-local
1
+ capistrano-scm-local [![Gem Version](https://badge.fury.io/rb/capistrano-scm-local.svg)](http://badge.fury.io/rb/capistrano-scm-local)
2
2
  ====================
3
3
 
4
4
  allow deploy from local directory
5
5
 
6
- [![Gem Version](https://badge.fury.io/rb/capistrano-scm-local.svg)](http://badge.fury.io/rb/capistrano-scm-local)
6
+
7
7
 
8
8
  Capfile
9
9
  ```ruby
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "capistrano-scm-local"
7
- gem.version = '0.1.10'
7
+ gem.version = '0.1.11'
8
8
  gem.authors = ["Boris Gorbylev"]
9
9
  gem.email = ["ekho@ekho.name"]
10
10
  gem.description = %q{Capistrano extension for deploying form local directory}
@@ -31,7 +31,9 @@ namespace :local do
31
31
 
32
32
  desc 'Read revision from REVISION file if exists'
33
33
  task :set_current_revision do
34
- revision_file = File.join(repo_url, 'REVISION')
35
- set :current_revision, File.exist?(revision_file) ? File.read(revision_file).strip : 'UNKNOWN'
34
+ unless fetch(:current_revision, false)
35
+ revision_file = File.join(repo_url, 'REVISION')
36
+ set :current_revision, File.exist?(revision_file) ? File.read(revision_file).strip : 'UNKNOWN'
37
+ end
36
38
  end
37
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-scm-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-08 00:00:00.000000000 Z
12
+ date: 2014-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano