ops_build 1.1.9 → 1.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: 60ccef0bf521df11b598fb6585e228a816a0cfaf
4
- data.tar.gz: 48444ad18d1cd118f4595ab0e9b2c2416958a5f2
3
+ metadata.gz: ef82a217c90f5bd0f0cb78b0505ae353c555a832
4
+ data.tar.gz: e91a8f3b6c8076c2f1f300c688a369064aeb3622
5
5
  SHA512:
6
- metadata.gz: 26f81c67b9561389952b9da6d6390a3b0d2681a0a4c645b0f7a5b46e0122ed22442dc9266fe0befa672d9adba85a9b35067808aef6fc769af0432991869d2654
7
- data.tar.gz: 8028c2e7ca4d4bab623c96a39c4f7cbb51aa407c5ca4fc1a91d0b0b50882c36f90b6b9954cff40e324e87a165f1922663e87bf8807915284dc976ea175f23c6e
6
+ metadata.gz: d4ee8f2bcc7ee9385d7ed0385ff1196122262b844e6c35b21ceee63ce5acc6b1f740ceb52e5b29cc46b39e402b4e6c70154a332e1cd6c1b29564f82809a6ee45
7
+ data.tar.gz: 0fba18663d35568d1765448280cbf95dd027322d1ca7a284fcdc0ab6b9ae51c701cdbabf9dbedbed7dbf76f81f62c75ed17a35f1ea5a73227176a0ec80af356d
@@ -80,20 +80,20 @@ module OpsBuild
80
80
  log_prefix: 'vagrant:',
81
81
  env: env)
82
82
 
83
- OpsBuild.logger.info('Running vagrant package')
84
- Utils::execute(
85
- "vagrant package #{options[:only]} --output #{options[:output]}",
86
- log_prefix: 'vagrant:',
87
- env: env)
88
-
89
83
  uuid = SecureRandom.uuid
90
84
  OpsBuild.logger.info("Running vagrant ssh cmd 'info > /vagrant/#{uuid}'")
91
85
  Utils::execute(
92
- "vagrant ssh #{options[:only]} -c 'info > /vagrant/#{uuid}'",
93
- log_prefix: 'vagrant:',
94
- env: env)
86
+ "vagrant ssh #{options[:only]} -c 'info > /vagrant/#{uuid}'",
87
+ log_prefix: 'vagrant:',
88
+ env: env)
95
89
  info_path = File.join(env['VAGRANT_CWD'], uuid)
96
90
  FileUtils.cp(info_path, "#{options[:output]}.metadata")
91
+
92
+ OpsBuild.logger.info('Running vagrant package')
93
+ Utils::execute(
94
+ "vagrant package #{options[:only]} --output #{options[:output]}",
95
+ log_prefix: 'vagrant:',
96
+ env: env)
97
97
  ensure
98
98
  OpsBuild.logger.info('Running vagrant destroy')
99
99
  Utils::execute(
@@ -1,3 +1,3 @@
1
1
  module OpsBuild
2
- VERSION = '1.1.9'
2
+ VERSION = '1.1.10'
3
3
  end
data/lib/ops_build.rb CHANGED
@@ -9,6 +9,7 @@ require 'open3'
9
9
  require 'yaml'
10
10
  require 'logger'
11
11
  require 'digest'
12
+ require 'securerandom'
12
13
 
13
14
  lib = File.expand_path('..', __FILE__)
14
15
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_build
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - HAMSIK Adam