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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9927b86468067f7e7cf07db35142614bdfcacf74
4
- data.tar.gz: 5b13e20f8a58408252c97c5a786d4af04140d894
3
+ metadata.gz: 6062ac7eb0c62fbf59ffcea1c7a7dc7c28baf43f
4
+ data.tar.gz: 771892cd70935c222f723a939179bcae9dc8ae36
5
5
  SHA512:
6
- metadata.gz: d954c1ebc96785c88c6fc440adc169454a5f8d4397d8ad3cfcacdba8e2f28f6798f78cbd58ac2864717cb97bd349cdc9d2e9ca418f813f7583c04700fec1a0ca
7
- data.tar.gz: 61b7f161391c69ef1c17b404d24d746a09f052a61daa5fef5cfe5aeecfa89280292e4f5f7496934c5e13b1ee90f83bd34e17f1a042f6044d4c779071cdbf3366
6
+ metadata.gz: 8af4f042898f482b82ccf76450960580ce935fbb59ce390e39ccbdef72f6e9c71c02098525fdeaa8b867ea645f48e3094f09b608e0fa7bc336976bbfe180cf54
7
+ data.tar.gz: 925200d0dd86e9164a6876b9ed950edc0df687cf375857e08a78c660e49887fbfc6dd8840b9e0c6070fc04cc6c54770389a72c34785ea25d267296896e2132f9
@@ -85,9 +85,10 @@ module Vara
85
85
  zip_pivotal(product_dir)
86
86
  end
87
87
 
88
- desc 'finalize-pivotal PIVOTAL_FILE_PATH VERSION', 'Update the version of a pivotal file'
89
- def finalize_pivotal(pivotal_file_path, version)
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
- file_path = product.path
99
- FileUtils.cp(file_path, output_dir)
99
+ product.paths.each do |path|
100
+ FileUtils.mv(path, output_dir)
101
+ end
100
102
  end
101
103
  end
102
104
  end
@@ -47,6 +47,10 @@ module Vara
47
47
  "#{path}.md5"
48
48
  end
49
49
 
50
+ def paths
51
+ [path, bom_path, md5_path]
52
+ end
53
+
50
54
  def stemcell_version
51
55
  metadata.stemcell_metadata.version
52
56
  end
@@ -1,5 +1,5 @@
1
1
  module Vara
2
- VERSION = '0.23.0'.freeze
2
+ VERSION = '0.24.0'.freeze
3
3
  end
4
4
 
5
5
  # Copyright (c) 2014-2015 Pivotal Software, Inc.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CF Release Engineering