rails_deploy 0.6.2 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kamal_override/build_clone.rb +15 -0
- data/lib/kamal_override/clone.rb +4 -1
- data/lib/kamal_override.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27813a2a55ab284ad9fd4a465a11d9b690c3756a7fa2a3ea62a9a5ad6db3db9f
|
4
|
+
data.tar.gz: 156e4dacbe6b400e3c1038bbac3a119fa58e45a69c00021c7488d7e545d67e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d548916f6ef70151cd7ddba264c0ad31d6e9c4b15e3f40ccb7cdd07a4103086d624493c5a5640423153806834f815b2c6b2569c2dc5032b746e1a785d3164bcb
|
7
|
+
data.tar.gz: 8703b8891c1e3d1cc666146eba2f60a2fac78a36260202f213c48a9b72c9fda73b79be0154879dd152fff6b81f645b5575431d289ae0538f0935183a11fbdc29
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module KamalOverride
|
2
|
+
module BuildClone
|
3
|
+
|
4
|
+
private
|
5
|
+
def clone_repo
|
6
|
+
info "Cloning repo into build directory `#{KAMAL.config.builder.build_directory}`..."
|
7
|
+
|
8
|
+
FileUtils.mkdir_p KAMAL.config.builder.clone_directory
|
9
|
+
KAMAL.builder.clone.each { |step| execute *step }
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Kamal::Cli::Build::Clone.prepend KamalOverride::BuildClone
|
data/lib/kamal_override/clone.rb
CHANGED
@@ -2,7 +2,10 @@ module KamalOverride
|
|
2
2
|
module Clone
|
3
3
|
|
4
4
|
def clone
|
5
|
-
|
5
|
+
[
|
6
|
+
git(:clone, escaped_root, path: config.builder.clone_directory.shellescape),
|
7
|
+
git(:submodule, :update, '--init', path: escaped_build_directory)
|
8
|
+
]
|
6
9
|
end
|
7
10
|
|
8
11
|
end
|
data/lib/kamal_override.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mingyuan Qin
|
@@ -49,6 +49,7 @@ files:
|
|
49
49
|
- README.md
|
50
50
|
- lib/deploy.rb
|
51
51
|
- lib/kamal_override.rb
|
52
|
+
- lib/kamal_override/build_clone.rb
|
52
53
|
- lib/kamal_override/clone.rb
|
53
54
|
- lib/kamal_override/configuration.rb
|
54
55
|
- lib/kamal_override/docker.rb
|