shipit-engine 0.23.0 → 0.23.1

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: fc62ac846a6e7816e9de50d219459166c6941f0b230174309ad76bd695ab338e
4
- data.tar.gz: 9879387bc8a1a0a89e334bea062ae56bfd060881da2f4e2779bbfddcae3b1f0d
3
+ metadata.gz: cd8a382d2166cd58c336b15c5d4efb3cd778458390c78e5fa11cd2317af31a17
4
+ data.tar.gz: 96480eda48c88fadd1f6fc115aefaed7efd981d37ba6e8bccff4fff25af5925f
5
5
  SHA512:
6
- metadata.gz: ee9308a0a602a3aed84a3d7e8a2b9d0d0acf9a8eabebc57a245139c78a0404782bd58f6bbd3bd16661fdef199861833d74ae841cbdb3a439f6567351b7f80ed7
7
- data.tar.gz: 4ecf8b958d7080b98babff0249bd8db5cdabcfe7c5b920c822a6db52148db5c953e3f7260ec60bf1eeba604d8403f4f8260806a15a3698eb29bf315ca0b84717
6
+ metadata.gz: 830e2fdae2a3a021ea0a753efcb63d25ebb441f5055f0a5c7cf874aad745cff3abf8b4f1b4617af692005dbd1bd253c6f302d781048315561437614bc83143d1
7
+ data.tar.gz: c25f76891638c118583b862f801863d8ba2e61a703dd154b5c4ba2f7bb9843a67b69b7d521ddc06d9ff206b1ed380e6c6df65d8bad71c54dd3c274a5fe1aab99
@@ -16,6 +16,15 @@ module Shipit
16
16
  end
17
17
  end
18
18
 
19
+ def fetched?(commit)
20
+ git_dir = File.join(@stack.git_path, '.git')
21
+ if Dir.exist?(git_dir)
22
+ git('rev-parse', '--quiet', '--verify', "#{commit.sha}^{commit}", env: env, chdir: @stack.git_path)
23
+ else
24
+ Command.new('test', '-d', git_dir, env: env, chdir: @stack.deploys_path)
25
+ end
26
+ end
27
+
19
28
  def fetch_deployed_revision
20
29
  with_temporary_working_directory(commit: @stack.commits.last) do |dir|
21
30
  spec = DeploySpec::FileSystem.new(dir, @stack.environment)
@@ -1,3 +1,3 @@
1
1
  module Shipit
2
- VERSION = '0.23.0'.freeze
2
+ VERSION = '0.23.1'.freeze
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipit-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-12 00:00:00.000000000 Z
11
+ date: 2018-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers