capistrano-bundle_rsync 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/CHANGELOG.md +6 -0
- data/README.md +1 -0
- data/capistrano-bundle_rsync.gemspec +1 -1
- data/lib/capistrano/bundle_rsync/bundler.rb +2 -2
- data/lib/capistrano/bundle_rsync/config.rb +4 -0
- data/lib/capistrano/bundle_rsync/git.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bfe2f655cad67a38c1a2bded794e76ea35ae6172fa13fd31bf3bc5b6390591e3
|
4
|
+
data.tar.gz: 64e49bfc61d8c8786747999fe77c1434438a0c106fdb371543a1274058d79588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9cffbe18e8ec9963d37559432ede3bbe9e5e4bfa771812ba19a6e0aecc2b618f5703df33e04ec16b87b7ca571add77596745eda9cc223a567f8803486300b38
|
7
|
+
data.tar.gz: 0072bb9dbed7d51987f1da5855dfca122b875f216a40413d7b2c830514223d6b4e326b36301c9877d5ad69e730a468b817dfb41bc3290332be8808565242d01f
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -66,6 +66,7 @@ bundle_rsync_config_files | `nil` | Additional files to rsync. Specified files a
|
|
66
66
|
bundle_rsync_shared_dirs | `nil` | Additional directories to rsync. Specified directories are copied into `shared` directory.
|
67
67
|
bundle_rsync_skip_bundle | false | (Secret option) Do not `bundle` and rsync bundle.
|
68
68
|
bundle_rsync_bundle_install_standalone | `nil` | bundle install with --standalone option. Set one of `true`, `false`, an `Array` of groups, or a white space separated `String`.
|
69
|
+
bundle_rsync_bundle_without | `[:development, :test]` | Configuration of bundle install with --without option.
|
69
70
|
|
70
71
|
## Task Orders
|
71
72
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-bundle_rsync"
|
7
|
-
spec.version = "0.5.
|
7
|
+
spec.version = "0.5.2"
|
8
8
|
spec.authors = ["Naotoshi Seo", "tohae"]
|
9
9
|
spec.email = ["sonots@gmail.com", "tohaechan@gmail.com"]
|
10
10
|
spec.description = %q{Deploy an application and bundled gems via rsync}
|
@@ -5,7 +5,7 @@ class Capistrano::BundleRsync::Bundler < Capistrano::BundleRsync::Base
|
|
5
5
|
def install
|
6
6
|
Bundler.with_clean_env do
|
7
7
|
with bundle_app_config: config.local_base_path do
|
8
|
-
opts = "--gemfile #{config.local_release_path}/Gemfile --deployment --quiet --path #{config.local_bundle_path} --without
|
8
|
+
opts = "--gemfile #{config.local_release_path}/Gemfile --deployment --quiet --path #{config.local_bundle_path} --without #{config.bundle_without.join(' ')}"
|
9
9
|
if standalone = config.bundle_install_standalone_option
|
10
10
|
opts += " #{standalone}"
|
11
11
|
end
|
@@ -27,7 +27,7 @@ class Capistrano::BundleRsync::Bundler < Capistrano::BundleRsync::Base
|
|
27
27
|
---
|
28
28
|
BUNDLE_FROZEN: '1'
|
29
29
|
BUNDLE_PATH: #{shared_path.join('bundle')}
|
30
|
-
BUNDLE_WITHOUT:
|
30
|
+
BUNDLE_WITHOUT: #{config.bundle_without.join(':')}
|
31
31
|
BUNDLE_DISABLE_SHARED_GEMS: '1'
|
32
32
|
BUNDLE_BIN: #{release_path.join('bin')}
|
33
33
|
EOS
|
@@ -27,11 +27,11 @@ class Capistrano::BundleRsync::Git < Capistrano::BundleRsync::SCM
|
|
27
27
|
within config.local_mirror_path do
|
28
28
|
if tree = fetch(:repo_tree)
|
29
29
|
stripped = tree.slice %r#^/?(.*?)/?$#, 1 # strip both side /
|
30
|
-
num_components = stripped.count('/')
|
30
|
+
num_components = stripped.count('/') + 1
|
31
31
|
execute :git, :archive, fetch(:branch), tree, "| tar -x --strip-components #{num_components} -f - -C ", "#{config.local_release_path}"
|
32
32
|
else
|
33
33
|
execute :git, :archive, fetch(:branch), '| tar -x -C', "#{config.local_release_path}"
|
34
|
-
end
|
34
|
+
end
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-bundle_rsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -136,8 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
|
-
|
140
|
-
rubygems_version: 2.6.11
|
139
|
+
rubygems_version: 3.0.1
|
141
140
|
signing_key:
|
142
141
|
specification_version: 4
|
143
142
|
summary: Deploy an application and bundled gems via rsync.
|