capistrano-scm-local 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/capistrano-scm-local.gemspec +72 -0
- data/lib/capistrano/local.rb +3 -3
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.15
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "capistrano-scm-local"
|
8
|
+
s.version = "0.1.15"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Boris Gorbylev"]
|
12
|
+
s.date = "2014-09-11"
|
13
|
+
s.description = "Capistrano extension for deploying form local directory"
|
14
|
+
s.email = "ekho@ekho.name"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.md",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE",
|
25
|
+
"README.md",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"capistrano-scm-local.gemspec",
|
30
|
+
"lib/capistrano-scm-local.rb",
|
31
|
+
"lib/capistrano/local.rb",
|
32
|
+
"lib/capistrano/tasks/local.rake",
|
33
|
+
"test/helper.rb",
|
34
|
+
"test/test_capistrano-git-local.rb"
|
35
|
+
]
|
36
|
+
s.homepage = "http://github.com/i-ekho/capistrano-scm-local"
|
37
|
+
s.licenses = ["MIT"]
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
s.rubygems_version = "1.8.23"
|
40
|
+
s.summary = "Capistrano SCM Local - Deploy from local copy"
|
41
|
+
|
42
|
+
if s.respond_to? :specification_version then
|
43
|
+
s.specification_version = 3
|
44
|
+
|
45
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
47
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
48
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
49
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
50
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
51
|
+
s.add_runtime_dependency(%q<capistrano>, ["~> 3.1"])
|
52
|
+
s.add_runtime_dependency(%q<minitar>, ["~> 0.5.4"])
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
58
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
59
|
+
s.add_dependency(%q<capistrano>, ["~> 3.1"])
|
60
|
+
s.add_dependency(%q<minitar>, ["~> 0.5.4"])
|
61
|
+
end
|
62
|
+
else
|
63
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
65
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
66
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
67
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
68
|
+
s.add_dependency(%q<capistrano>, ["~> 3.1"])
|
69
|
+
s.add_dependency(%q<minitar>, ["~> 0.5.4"])
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
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 :
|
22
|
+
on release_roles :all, in: :parallel do |host|
|
23
23
|
file_list.each { |r| upload! r, release_path, recursive: true }
|
24
24
|
end
|
25
25
|
end
|
@@ -34,7 +34,7 @@ class Capistrano::Local < Capistrano::SCM
|
|
34
34
|
archive = ''
|
35
35
|
# preparing archive
|
36
36
|
run_locally do
|
37
|
-
archive = fetch(:tmp_dir, Dir::tmpdir()) + '/capistrano/' + fetch(:
|
37
|
+
archive = fetch(:tmp_dir, Dir::tmpdir()) + '/capistrano/' + fetch(:alllication, 'distr') + "-#{fetch(:current_revision)}.tar.gz"
|
38
38
|
execute :mkdir, '-p', File.dirname(archive)
|
39
39
|
|
40
40
|
if File.exists?(archive) && !test(:tar, 'tzf', archive)
|
@@ -54,7 +54,7 @@ class Capistrano::Local < Capistrano::SCM
|
|
54
54
|
end
|
55
55
|
|
56
56
|
# uploading and unpacking
|
57
|
-
on release_roles :
|
57
|
+
on release_roles :all, in: :parallel do |host|
|
58
58
|
upload! archive, releases_path, verbose: false
|
59
59
|
remote_archive = File.join(releases_path, File.basename(archive))
|
60
60
|
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.15
|
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-
|
12
|
+
date: 2014-09-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- README.rdoc
|
141
141
|
- Rakefile
|
142
142
|
- VERSION
|
143
|
+
- capistrano-scm-local.gemspec
|
143
144
|
- lib/capistrano-scm-local.rb
|
144
145
|
- lib/capistrano/local.rb
|
145
146
|
- lib/capistrano/tasks/local.rake
|
@@ -160,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
161
|
version: '0'
|
161
162
|
segments:
|
162
163
|
- 0
|
163
|
-
hash:
|
164
|
+
hash: -2098557392660322370
|
164
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
166
|
none: false
|
166
167
|
requirements:
|