capistrano-scm-local 0.1.15 → 0.1.16
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/VERSION +1 -1
- data/capistrano-scm-local.gemspec +2 -2
- data/lib/capistrano/local.rb +4 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.16
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "capistrano-scm-local"
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.16"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Boris Gorbylev"]
|
|
12
|
-
s.date = "2014-09-
|
|
12
|
+
s.date = "2014-09-17"
|
|
13
13
|
s.description = "Capistrano extension for deploying form local directory"
|
|
14
14
|
s.email = "ekho@ekho.name"
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/capistrano/local.rb
CHANGED
|
@@ -19,7 +19,7 @@ class Capistrano::Local < Capistrano::SCM
|
|
|
19
19
|
def release
|
|
20
20
|
file_list = Dir.glob(File.join(repo_url, '*')).concat(Dir.glob(File.join(repo_url, '.[^.]*')))
|
|
21
21
|
|
|
22
|
-
on release_roles :all
|
|
22
|
+
on release_roles :all do |host|
|
|
23
23
|
file_list.each { |r| upload! r, release_path, recursive: true }
|
|
24
24
|
end
|
|
25
25
|
end
|
|
@@ -35,6 +35,7 @@ class Capistrano::Local < Capistrano::SCM
|
|
|
35
35
|
# preparing archive
|
|
36
36
|
run_locally do
|
|
37
37
|
archive = fetch(:tmp_dir, Dir::tmpdir()) + '/capistrano/' + fetch(:alllication, 'distr') + "-#{fetch(:current_revision)}.tar.gz"
|
|
38
|
+
debug "Archiving #{repo_url} to #{archive}"
|
|
38
39
|
execute :mkdir, '-p', File.dirname(archive)
|
|
39
40
|
|
|
40
41
|
if File.exists?(archive) && !test(:tar, 'tzf', archive)
|
|
@@ -54,7 +55,8 @@ class Capistrano::Local < Capistrano::SCM
|
|
|
54
55
|
end
|
|
55
56
|
|
|
56
57
|
# uploading and unpacking
|
|
57
|
-
on release_roles :all
|
|
58
|
+
on release_roles :all do |host|
|
|
59
|
+
debug "Uploading #{archive} to #{host}:#{release_path}"
|
|
58
60
|
upload! archive, releases_path, verbose: false
|
|
59
61
|
remote_archive = File.join(releases_path, File.basename(archive))
|
|
60
62
|
execute :tar, 'xzf', remote_archive, '-C', release_path
|
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.
|
|
4
|
+
version: 0.1.16
|
|
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-09-
|
|
12
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: shoulda
|
|
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
version: '0'
|
|
162
162
|
segments:
|
|
163
163
|
- 0
|
|
164
|
-
hash: -
|
|
164
|
+
hash: -2597710008742823049
|
|
165
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
none: false
|
|
167
167
|
requirements:
|