soaring 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e51c81c87f78445eb16f7c608554d119ddba80f
4
- data.tar.gz: 2f420dee5c13092000ee75c4006cd484bb16eb16
3
+ metadata.gz: 471e1eb732ebb5967e82a6be99293fa78bf15254
4
+ data.tar.gz: 8d69151eb93db088ff40f9f759ddd88b98e5b443
5
5
  SHA512:
6
- metadata.gz: 8caa2e81cad920c040cdaafcd76d4844ea58e4e128a450289829cb93158efc7e5febfb273b0ee2d037c057211bbb3f61efc6657205a026a05bcfb00330573658
7
- data.tar.gz: e9a2e004dc51f73f38b952310c1a655632bba85950362594fa10fd1ca27d837030bac0a7a1bebd2476d3ab69ef10813e19f9bbdccb0476b09ffd99e6af75d488
6
+ metadata.gz: 2cd69d74a630585aa6a8e43b3fb0ca5cbef0465d61f26988a416d3322c42bb8896f8b42da3ee64d8fc966d9e722e6c47f1c98753b8fbdbbade372c5ad484da18
7
+ data.tar.gz: c4119109f8e71669a714b46e13892c6147d4273b92f45bac5ff9c43948b17342a3107649a1ce63728c3bdab0d88715e7356658a94f99eec9e562cc1cac987e70
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Soaring
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
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.9
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-08 00:00:00.000000000 Z
11
+ date: 2016-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler