puppet_litmus 0.7.2 → 0.7.3

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: e9e6615251a2d3bbcb100b11d5c345eb94502c1e
4
- data.tar.gz: 1d3fc0198e91cfd54e0c687dbb917e72ea8693a2
3
+ metadata.gz: ec6350d63289e4fdc5aa4f76298c0cc9195e5572
4
+ data.tar.gz: 7e1c6d2c9c7f80b8e72bdf02435e3308fae11196
5
5
  SHA512:
6
- metadata.gz: 9bb8631935d5c93331b4a11c1af419bf3e3facac8a403fbaec842ac9b03cdcfafa6400f06add8d4f74208160fc9c353bbe9aca2a329d42a83a69f092a813d717
7
- data.tar.gz: 280bff179c349007b4a24e1d76cbfb3ec6687a2a0729ab25d7c876505774f0ce453a429dbe66575b0a0b66ec8178f1e46facd1b7693d2c200c1dd232aa001944
6
+ metadata.gz: 44efea7bc201db842bc9b24a985f929e97b014c3336190a8371ca989b911bbe5f762220c36c64b385ec1da19bcefe052f55cb670ee40f9dba41f34510f549a8c
7
+ data.tar.gz: 1846a20f07f9bf4c70929b4fd210376fa9be2da40aa0b715b17e5993e6630c7d82ab997bea2d31a9f802e40b8e360a262fcdd66878e60ca757300b0e968fbcec
@@ -280,7 +280,7 @@ namespace :litmus do
280
280
  else
281
281
  args[:target_node_name]
282
282
  end
283
- run_local_command("bundle exec bolt file upload #{module_tar} /tmp/#{File.basename(module_tar)} --nodes #{target_string} --inventoryfile inventory.yaml")
283
+ run_local_command("bundle exec bolt file upload \"#{module_tar}\" /tmp/#{File.basename(module_tar)} --nodes #{target_string} --inventoryfile inventory.yaml")
284
284
  install_module_command = "puppet module install /tmp/#{File.basename(module_tar)}"
285
285
  result = run_command(install_module_command, target_nodes, config: nil, inventory: inventory_hash)
286
286
  # rubocop:disable Style/GuardClause
@@ -148,8 +148,12 @@ module PuppetLitmus::Serverspec
148
148
  # @return [Object] A result object from the task.The values available are stdout, stderr and result.
149
149
  def run_bolt_task(task_name, params = {}, opts = {})
150
150
  config_data = { 'modulepath' => File.join(Dir.pwd, 'spec', 'fixtures', 'modules') }
151
- inventory_hash = inventory_hash_from_inventory_file
152
151
  target_node_name = ENV['TARGET_HOST'] if target_node_name.nil?
152
+ inventory_hash = if target_node_name.nil? || target_node_name == 'localhost'
153
+ nil
154
+ else
155
+ inventory_hash_from_inventory_file
156
+ end
153
157
 
154
158
  result = run_task(task_name, target_node_name, params, config: config_data, inventory: inventory_hash)
155
159
  result_obj = {
@@ -2,5 +2,5 @@
2
2
 
3
3
  # version of this gem
4
4
  module PuppetLitmus
5
- VERSION ||= '0.7.2'
5
+ VERSION ||= '0.7.3'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_litmus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-03 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bolt