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 +4 -4
- data/lib/idlc-sdk-pfm/command/package.rb +15 -0
- data/lib/idlc-sdk-pfm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de36540ec36e5a16e84a8ff47205882c43fc643d
|
4
|
+
data.tar.gz: 3ad3285e1a3186350fb680d7a90bd9c0399434e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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')
|
data/lib/idlc-sdk-pfm/version.rb
CHANGED