capsum 1.1.0 → 1.1.5
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.
- checksums.yaml +5 -5
- data/capsum.gemspec +2 -2
- data/lib/capsum/git.rb +2 -2
- data/lib/capsum/rsync.rb +2 -1
- data/lib/capsum/tasks/rsync.rake +5 -1
- data/lib/capsum/version.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 84dbb7df8499ed0015e40aa1e1aeb8d06c77c98cc403c3d27dcc9ea205efb5d7
|
4
|
+
data.tar.gz: 37bf4fb266abf354f9a93a33a7dd9f8dc4fe596f96b809b538b4b98fb280db6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49e89a0f4a2f149b584adb0b14dff6cdedb0eddc0472a1c8143503089905b90d6142e5811870f216eee5cf718283b564c75bb4c5f4f59c1b1ac144744c0d3fd4
|
7
|
+
data.tar.gz: 5790c85dd4c81034871eb51e63ea832d0d89800b49aa388e3f412d380eac8c23c9450e2fd8ce1e7f7e92ea35755f484ea40d381d151f0f4cb992a5aaa0243c64
|
data/capsum.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
# Dependency Gems
|
22
|
-
spec.add_dependency "capistrano", "~> 3.
|
22
|
+
spec.add_dependency "capistrano", "~> 3.13.0"
|
23
23
|
# spec.add_dependency "capistrano-rsync", "~> 1.0.2" # broken, wait update
|
24
|
-
spec.add_dependency "capistrano-rails", "~> 1.
|
24
|
+
spec.add_dependency "capistrano-rails", "~> 1.4.0"
|
25
25
|
spec.add_development_dependency "capistrano-sidekiq", Capsum::CAPISTRANO_SIDEKIQ_REQUIREMENT # optional
|
26
26
|
|
27
27
|
# spec.add_dependency "capistrano-helpers", "~> 0.7.1"
|
data/lib/capsum/git.rb
CHANGED
@@ -3,7 +3,7 @@ require "capsum"
|
|
3
3
|
namespace :load do
|
4
4
|
task :defaults do
|
5
5
|
# use current branch
|
6
|
-
set :branch, -> { `git
|
6
|
+
set :branch, -> { `git rev-parse --abbrev-ref HEAD`.chomp }
|
7
7
|
|
8
8
|
# use current remote repo url
|
9
9
|
set :repo_url, -> {
|
@@ -15,4 +15,4 @@ namespace :load do
|
|
15
15
|
|
16
16
|
# TODO: set :scm_verbose, true
|
17
17
|
end
|
18
|
-
end
|
18
|
+
end
|
data/lib/capsum/rsync.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "capistrano/scm/plugin"
|
2
|
+
require "tempfile"
|
2
3
|
|
3
4
|
class Capsum::Rsync < Capistrano::SCM::Plugin
|
4
5
|
def set_defaults
|
@@ -6,7 +7,7 @@ class Capsum::Rsync < Capistrano::SCM::Plugin
|
|
6
7
|
set_if_empty :rsync_copy, "rsync --archive --acls --xattrs"
|
7
8
|
|
8
9
|
# Stage is used on your local machine for rsyncing from.
|
9
|
-
set_if_empty :rsync_stage, "
|
10
|
+
set_if_empty :rsync_stage, File.join(Dir.tmpdir, "capsum", Dir.pwd)
|
10
11
|
|
11
12
|
# Cache is used on the server to copy files to from to the release directory.
|
12
13
|
set_if_empty :rsync_cache, "shared/deploy"
|
data/lib/capsum/tasks/rsync.rake
CHANGED
@@ -49,6 +49,9 @@ namespace :rsync do
|
|
49
49
|
|
50
50
|
checkout = %W(git reset --hard origin/#{fetch(:branch)})
|
51
51
|
run_locally { execute *checkout }
|
52
|
+
|
53
|
+
submodule = %w(git submodule update --init --force)
|
54
|
+
run_locally { execute *submodule }
|
52
55
|
end
|
53
56
|
end
|
54
57
|
|
@@ -58,12 +61,13 @@ namespace :rsync do
|
|
58
61
|
user = role.user + "@" if role.user
|
59
62
|
|
60
63
|
rsync = %w(rsync)
|
61
|
-
rsync.concat fetch(:rsync_options)
|
62
64
|
|
63
65
|
if (port = role.port)
|
64
66
|
rsync += [ "-e", %("ssh -p #{port}") ]
|
65
67
|
end
|
66
68
|
|
69
|
+
rsync.concat fetch(:rsync_options)
|
70
|
+
|
67
71
|
rsync << fetch(:rsync_stage) + "/"
|
68
72
|
rsync << "#{user}#{role.hostname}:#{rsync_cache.call || release_path}"
|
69
73
|
|
data/lib/capsum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capsum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sunteya
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.13.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.13.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: capistrano-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.4.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: capistrano-sidekiq
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,7 +115,7 @@ homepage: http://github.com/sunteya/capsum
|
|
115
115
|
licenses:
|
116
116
|
- MIT
|
117
117
|
metadata: {}
|
118
|
-
post_install_message:
|
118
|
+
post_install_message:
|
119
119
|
rdoc_options: []
|
120
120
|
require_paths:
|
121
121
|
- lib
|
@@ -130,9 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
|
134
|
-
|
135
|
-
signing_key:
|
133
|
+
rubygems_version: 3.1.4
|
134
|
+
signing_key:
|
136
135
|
specification_version: 4
|
137
136
|
summary: Collect gems and recipes related capistrano.
|
138
137
|
test_files: []
|