vara 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vara/cli.rb +6 -4
- data/lib/vara/product.rb +4 -0
- data/lib/vara/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: 6062ac7eb0c62fbf59ffcea1c7a7dc7c28baf43f
|
4
|
+
data.tar.gz: 771892cd70935c222f723a939179bcae9dc8ae36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8af4f042898f482b82ccf76450960580ce935fbb59ce390e39ccbdef72f6e9c71c02098525fdeaa8b867ea645f48e3094f09b608e0fa7bc336976bbfe180cf54
|
7
|
+
data.tar.gz: 925200d0dd86e9164a6876b9ed950edc0df687cf375857e08a78c660e49887fbfc6dd8840b9e0c6070fc04cc6c54770389a72c34785ea25d267296896e2132f9
|
data/lib/vara/cli.rb
CHANGED
@@ -85,9 +85,10 @@ module Vara
|
|
85
85
|
zip_pivotal(product_dir)
|
86
86
|
end
|
87
87
|
|
88
|
-
desc '
|
89
|
-
def
|
88
|
+
desc 'update-product-version PIVOTAL_FILE_PATH VERSION', 'Update the version of a pivotal file'
|
89
|
+
def update_product_version(pivotal_file_path, version)
|
90
90
|
require 'vara/product'
|
91
|
+
pivotal_file_path = File.expand_path(pivotal_file_path)
|
91
92
|
Dir.mktmpdir do |temp_dir|
|
92
93
|
FileUtils.cd(temp_dir) do
|
93
94
|
`unzip #{pivotal_file_path} -d .`
|
@@ -95,8 +96,9 @@ module Vara
|
|
95
96
|
product = Vara::Product.new(temp_dir)
|
96
97
|
product.update_product_version(version)
|
97
98
|
product.build
|
98
|
-
|
99
|
-
|
99
|
+
product.paths.each do |path|
|
100
|
+
FileUtils.mv(path, output_dir)
|
101
|
+
end
|
100
102
|
end
|
101
103
|
end
|
102
104
|
end
|
data/lib/vara/product.rb
CHANGED
data/lib/vara/version.rb
CHANGED