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 +4 -4
- data/lib/shipit/stack_commands.rb +9 -0
- data/lib/shipit/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd8a382d2166cd58c336b15c5d4efb3cd778458390c78e5fa11cd2317af31a17
|
4
|
+
data.tar.gz: 96480eda48c88fadd1f6fc115aefaed7efd981d37ba6e8bccff4fff25af5925f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/shipit/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
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.
|
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-
|
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
|