idlc-sdk-pfm 1.0.17 → 1.0.18

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
  SHA1:
3
- metadata.gz: bba271852fbd877c9cc1dce9a99b351c2dce2eac
4
- data.tar.gz: d5d3cc2977ce3ccaf88f9637e15c78a6dc0bfd3d
3
+ metadata.gz: de36540ec36e5a16e84a8ff47205882c43fc643d
4
+ data.tar.gz: 3ad3285e1a3186350fb680d7a90bd9c0399434e9
5
5
  SHA512:
6
- metadata.gz: c7d858f7b95361c705f94d1266407669b8a5b93f67cbeb9eb625001888f42bda61ad5c47700f8c3242bb911c7dfb379f6d9a7e110fccefe708899817c16b06c0
7
- data.tar.gz: 950cd8119fe6bd8628278ab398c232c5d90024ac382cf485d210c09d507a762f4522d40a7e6c99a8c5d9f1116ef3822b07340ab286c79a83d333c8c33a964a2a
6
+ metadata.gz: 0a0871b094919a274f54a2ed0f51c0ab879c166180a0622449f2a8c8813e9762120b3a87e0abb7aa937b10e96f64e386abdee7198acb4a75fbed277336faf102
7
+ data.tar.gz: 9b6874b474dac166d078a5d2d9110885681a0b8c5db4a68e9f01fe75f04741a1383d317835bd5f2e48074c6e87f3b5443d3047f6445417c6d38dc768ce47258a
@@ -41,6 +41,21 @@ module Pfm
41
41
  def package
42
42
  raise InvalidRepository, 'This doesn\'t look like a valid infrastructure repository' unless File.directory? "#{inf_base_dir}/tf"
43
43
 
44
+ # tag git repo with version number.
45
+ begin
46
+ system("git tag -am 'v#{version}' #{version} &>/dev/null")
47
+ msg("Tagged v#{version}")
48
+ rescue
49
+ msg("Tag v#{REPO_VERSION} has already been created")
50
+ end
51
+
52
+ begin
53
+ system('git push --follow-tags &>/dev/null')
54
+ msg('Pushed git tags.')
55
+ rescue
56
+ err('Failed to push tags.')
57
+ end
58
+
44
59
  workspace = Idlc::Workspace.new
45
60
 
46
61
  workspace.flatten("#{inf_base_dir}/tf", 'tf')
@@ -1,3 +1,3 @@
1
1
  module Pfm
2
- VERSION = '1.0.17'.freeze
2
+ VERSION = '1.0.18'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idlc-sdk-pfm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Cazell