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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df4104448b92cc26dd631d9a239672abb1339d567214d1e900768ff1eaae0239
4
- data.tar.gz: ed5d4da431cd59fc50342cdb613772f162ad726a5d659839bd477c5f5694c553
3
+ metadata.gz: 27813a2a55ab284ad9fd4a465a11d9b690c3756a7fa2a3ea62a9a5ad6db3db9f
4
+ data.tar.gz: 156e4dacbe6b400e3c1038bbac3a119fa58e45a69c00021c7488d7e545d67e77
5
5
  SHA512:
6
- metadata.gz: f1e21b7302b40fbd9caa97e702b34eb05dc305b104c02c04dc46d1db4c013edb51ae35bf9f644c7bc8de7ba548f241a1dc32cbdcacad69825bcbfc9a137c789c
7
- data.tar.gz: 5759319e1a9845af26825d8ef6743bacd29496a01ad42abd0bd89700b0c4c6fa32baea466d0e913fdf0f73406167b6fe64bc90363090ace0220d327efc8beb61
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
@@ -2,7 +2,10 @@ module KamalOverride
2
2
  module Clone
3
3
 
4
4
  def clone
5
- git :clone, escaped_root, '--recurse-submodules=vendor/engine', '--shallow-submodules', path: config.builder.clone_directory.shellescape
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
@@ -1,3 +1,4 @@
1
+ require 'kamal_override/build_clone'
1
2
  require 'kamal_override/clone'
2
3
  require 'kamal_override/configuration'
3
4
  require 'kamal_override/docker'
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.2
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