soaring 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soaring/packager.rb +5 -0
- data/lib/soaring/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 471e1eb732ebb5967e82a6be99293fa78bf15254
|
4
|
+
data.tar.gz: 8d69151eb93db088ff40f9f759ddd88b98e5b443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd69d74a630585aa6a8e43b3fb0ca5cbef0465d61f26988a416d3322c42bb8896f8b42da3ee64d8fc966d9e722e6c47f1c98753b8fbdbbade372c5ad484da18
|
7
|
+
data.tar.gz: c4119109f8e71669a714b46e13892c6147d4273b92f45bac5ff9c43948b17342a3107649a1ce63728c3bdab0d88715e7356658a94f99eec9e562cc1cac987e70
|
data/lib/soaring/packager.rb
CHANGED
@@ -7,6 +7,7 @@ module Soaring
|
|
7
7
|
def package(project_folder)
|
8
8
|
validate_project if not @options[:ignore_git_checks]
|
9
9
|
build_output_location = generate_build_output_location(project_folder)
|
10
|
+
update_project_commit_hash
|
10
11
|
`mkdir -p #{project_folder}/build`
|
11
12
|
`zip -r #{build_output_location} * .ebextensions --exclude=build/* --exclude=config/environment.yml`
|
12
13
|
puts "Build packaged at #{build_output_location}"
|
@@ -29,6 +30,10 @@ module Soaring
|
|
29
30
|
"#{project_folder}/build/build_#{service_name}_#{revision_hash}_#{timestamp}.zip"
|
30
31
|
end
|
31
32
|
|
33
|
+
def update_project_commit_hash
|
34
|
+
`git rev-parse HEAD > commit-hash`
|
35
|
+
end
|
36
|
+
|
32
37
|
def is_git_repo_up_to_date?
|
33
38
|
git_response = `git status --porcelain`.chomp
|
34
39
|
return true if '' == git_response
|
data/lib/soaring/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soaring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barney de Villiers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|