bolt 2.11.1 → 2.16.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bolt might be problematic. Click here for more details.

Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/Puppetfile +1 -1
  3. data/bolt-modules/boltlib/lib/puppet/datatypes/resourceinstance.rb +3 -2
  4. data/bolt-modules/boltlib/lib/puppet/functions/add_facts.rb +1 -0
  5. data/bolt-modules/boltlib/lib/puppet/functions/add_to_group.rb +1 -0
  6. data/bolt-modules/boltlib/lib/puppet/functions/apply_prep.rb +1 -1
  7. data/bolt-modules/boltlib/lib/puppet/functions/catch_errors.rb +1 -0
  8. data/bolt-modules/boltlib/lib/puppet/functions/facts.rb +1 -0
  9. data/bolt-modules/boltlib/lib/puppet/functions/fail_plan.rb +1 -0
  10. data/bolt-modules/boltlib/lib/puppet/functions/get_resources.rb +2 -1
  11. data/bolt-modules/boltlib/lib/puppet/functions/get_target.rb +1 -0
  12. data/bolt-modules/boltlib/lib/puppet/functions/get_targets.rb +1 -0
  13. data/bolt-modules/boltlib/lib/puppet/functions/puppetdb_fact.rb +1 -0
  14. data/bolt-modules/boltlib/lib/puppet/functions/puppetdb_query.rb +1 -0
  15. data/bolt-modules/boltlib/lib/puppet/functions/remove_from_group.rb +1 -0
  16. data/bolt-modules/boltlib/lib/puppet/functions/resolve_references.rb +1 -0
  17. data/bolt-modules/boltlib/lib/puppet/functions/resource.rb +53 -0
  18. data/bolt-modules/boltlib/lib/puppet/functions/run_command.rb +1 -0
  19. data/bolt-modules/boltlib/lib/puppet/functions/run_plan.rb +67 -1
  20. data/bolt-modules/boltlib/lib/puppet/functions/run_script.rb +1 -0
  21. data/bolt-modules/boltlib/lib/puppet/functions/run_task.rb +6 -3
  22. data/bolt-modules/boltlib/lib/puppet/functions/run_task_with.rb +8 -2
  23. data/bolt-modules/boltlib/lib/puppet/functions/set_config.rb +1 -0
  24. data/bolt-modules/boltlib/lib/puppet/functions/set_feature.rb +1 -0
  25. data/bolt-modules/boltlib/lib/puppet/functions/set_resources.rb +66 -43
  26. data/bolt-modules/boltlib/lib/puppet/functions/set_var.rb +1 -0
  27. data/bolt-modules/boltlib/lib/puppet/functions/upload_file.rb +1 -0
  28. data/bolt-modules/boltlib/lib/puppet/functions/vars.rb +1 -0
  29. data/bolt-modules/boltlib/lib/puppet/functions/wait_until_available.rb +1 -0
  30. data/bolt-modules/boltlib/lib/puppet/functions/without_default_logging.rb +1 -0
  31. data/bolt-modules/boltlib/lib/puppet/functions/write_file.rb +1 -0
  32. data/bolt-modules/ctrl/lib/puppet/functions/ctrl/do_until.rb +2 -0
  33. data/bolt-modules/ctrl/lib/puppet/functions/ctrl/sleep.rb +2 -0
  34. data/bolt-modules/file/lib/puppet/functions/file/exists.rb +2 -1
  35. data/bolt-modules/file/lib/puppet/functions/file/join.rb +2 -0
  36. data/bolt-modules/file/lib/puppet/functions/file/read.rb +3 -1
  37. data/bolt-modules/file/lib/puppet/functions/file/readable.rb +3 -1
  38. data/bolt-modules/file/lib/puppet/functions/file/write.rb +2 -0
  39. data/bolt-modules/out/lib/puppet/functions/out/message.rb +2 -0
  40. data/bolt-modules/prompt/lib/puppet/functions/prompt.rb +1 -0
  41. data/bolt-modules/system/lib/puppet/functions/system/env.rb +2 -0
  42. data/lib/bolt/analytics.rb +21 -2
  43. data/lib/bolt/applicator.rb +20 -7
  44. data/lib/bolt/apply_inventory.rb +4 -0
  45. data/lib/bolt/apply_target.rb +4 -0
  46. data/lib/bolt/bolt_option_parser.rb +11 -10
  47. data/lib/bolt/catalog.rb +81 -68
  48. data/lib/bolt/cli.rb +18 -8
  49. data/lib/bolt/config.rb +152 -120
  50. data/lib/bolt/config/options.rb +321 -0
  51. data/lib/bolt/config/transport/base.rb +16 -16
  52. data/lib/bolt/config/transport/docker.rb +9 -23
  53. data/lib/bolt/config/transport/local.rb +6 -44
  54. data/lib/bolt/config/transport/options.rb +305 -0
  55. data/lib/bolt/config/transport/orch.rb +9 -18
  56. data/lib/bolt/config/transport/remote.rb +3 -6
  57. data/lib/bolt/config/transport/ssh.rb +59 -114
  58. data/lib/bolt/config/transport/winrm.rb +18 -47
  59. data/lib/bolt/executor.rb +14 -1
  60. data/lib/bolt/inventory/group.rb +1 -1
  61. data/lib/bolt/inventory/inventory.rb +4 -14
  62. data/lib/bolt/inventory/target.rb +22 -5
  63. data/lib/bolt/outputter.rb +3 -0
  64. data/lib/bolt/outputter/rainbow.rb +80 -0
  65. data/lib/bolt/pal.rb +6 -1
  66. data/lib/bolt/project.rb +66 -46
  67. data/lib/bolt/resource_instance.rb +10 -3
  68. data/lib/bolt/shell/bash.rb +9 -9
  69. data/lib/bolt/shell/powershell.rb +2 -1
  70. data/lib/bolt/shell/powershell/snippets.rb +8 -0
  71. data/lib/bolt/transport/docker.rb +1 -1
  72. data/lib/bolt/transport/local/connection.rb +2 -1
  73. data/lib/bolt/transport/ssh/connection.rb +35 -0
  74. data/lib/bolt/version.rb +1 -1
  75. data/lib/bolt_spec/bolt_context.rb +1 -1
  76. data/lib/bolt_spec/run.rb +1 -1
  77. metadata +23 -5
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bolt
4
- VERSION = '2.11.1'
4
+ VERSION = '2.16.0'
5
5
  end
@@ -138,7 +138,7 @@ module BoltSpec
138
138
  # Override in your tests
139
139
  def config
140
140
  @config ||= begin
141
- conf = Bolt::Config.new(Bolt::Project.new('.'), {})
141
+ conf = Bolt::Config.default
142
142
  conf.modulepath = [modulepath].flatten
143
143
  conf
144
144
  end
@@ -144,7 +144,7 @@ module BoltSpec
144
144
  end
145
145
 
146
146
  def config
147
- @config ||= Bolt::Config.new(Bolt::Project.new(@project_path), @config_data)
147
+ @config ||= Bolt::Config.new(Bolt::Project.create_project(@project_path), @config_data)
148
148
  end
149
149
 
150
150
  def inventory
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.1
4
+ version: 2.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-28 00:00:00.000000000 Z
11
+ date: 2020-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -178,13 +178,27 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0.4'
181
+ - !ruby/object:Gem::Dependency
182
+ name: paint
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.2'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.2'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: puppet
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - ">="
186
200
  - !ruby/object:Gem::Version
187
- version: 6.15.0
201
+ version: 6.16.0
188
202
  - - "<"
189
203
  - !ruby/object:Gem::Version
190
204
  version: '7'
@@ -194,7 +208,7 @@ dependencies:
194
208
  requirements:
195
209
  - - ">="
196
210
  - !ruby/object:Gem::Version
197
- version: 6.15.0
211
+ version: 6.16.0
198
212
  - - "<"
199
213
  - !ruby/object:Gem::Version
200
214
  version: '7'
@@ -407,6 +421,7 @@ files:
407
421
  - bolt-modules/boltlib/lib/puppet/functions/puppetdb_query.rb
408
422
  - bolt-modules/boltlib/lib/puppet/functions/remove_from_group.rb
409
423
  - bolt-modules/boltlib/lib/puppet/functions/resolve_references.rb
424
+ - bolt-modules/boltlib/lib/puppet/functions/resource.rb
410
425
  - bolt-modules/boltlib/lib/puppet/functions/run_command.rb
411
426
  - bolt-modules/boltlib/lib/puppet/functions/run_plan.rb
412
427
  - bolt-modules/boltlib/lib/puppet/functions/run_script.rb
@@ -445,9 +460,11 @@ files:
445
460
  - lib/bolt/catalog/logging.rb
446
461
  - lib/bolt/cli.rb
447
462
  - lib/bolt/config.rb
463
+ - lib/bolt/config/options.rb
448
464
  - lib/bolt/config/transport/base.rb
449
465
  - lib/bolt/config/transport/docker.rb
450
466
  - lib/bolt/config/transport/local.rb
467
+ - lib/bolt/config/transport/options.rb
451
468
  - lib/bolt/config/transport/orch.rb
452
469
  - lib/bolt/config/transport/remote.rb
453
470
  - lib/bolt/config/transport/ssh.rb
@@ -466,6 +483,7 @@ files:
466
483
  - lib/bolt/outputter/human.rb
467
484
  - lib/bolt/outputter/json.rb
468
485
  - lib/bolt/outputter/logger.rb
486
+ - lib/bolt/outputter/rainbow.rb
469
487
  - lib/bolt/pal.rb
470
488
  - lib/bolt/pal/issues.rb
471
489
  - lib/bolt/pal/logging.rb
@@ -588,7 +606,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
588
606
  - !ruby/object:Gem::Version
589
607
  version: '0'
590
608
  requirements: []
591
- rubygems_version: 3.0.6
609
+ rubygems_version: 3.0.8
592
610
  signing_key:
593
611
  specification_version: 4
594
612
  summary: Execute commands remotely over SSH and WinRM