beaker-task_helper 1.2.0 → 1.3.0

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: 88d7c18680282490328a217db93b882d00a37d56
4
- data.tar.gz: 31f9f515613511823ac75c3bb0c72c2e9a448e98
3
+ metadata.gz: 2b67d20327e15bba80fc705279d00a66a5238326
4
+ data.tar.gz: 886bb5ec8d0c12b921f7957aedd285222c814b47
5
5
  SHA512:
6
- metadata.gz: 90b748cbbe7ac03e3275f4e66a0fdcdddc917b98872e6913814b978426c67776d24fb40bd3437eb64a2ee172769d85f2dce052b46b359e81080ae387fed77950
7
- data.tar.gz: 2f3ba90db5a68378b252e66a3a429cd5520b8d1bca40de26829e8ef8568b01615a534912d1e25a3a1295849e0989ead3f6bf9f582bf4f285ae74504bfe336878
6
+ metadata.gz: 00d3d517e0805475cbb87f734d523856281a740f588c6ef58b96ffd14c4b4b6068cc882e91ef820901ca134082ffb279e5081a3430438f11c8d5ffbb96baabff
7
+ data.tar.gz: 163cae5d0dc532e61af406560867ae805e32cb0950739655851c3d32a6c6d1a768c5becb6d072682276c1784abbdab682eae9e733a900f18aafbf47825d0226a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ### 1.3.0
4
+
5
+ * Cleaning up the README
6
+ * Making compatible with bolt versions greater than 0.15.0
7
+ * Pinning bolt install version to 0.16.1
8
+
3
9
  ### 1.2.0
4
10
 
5
11
  * run_task now takes host as a parameter.
data/CONTRIBUTING.md CHANGED
@@ -18,7 +18,7 @@ If you're adding new functionality or configuration, you're probably adding a fe
18
18
  If you're fixing a bug without adding functionality, please review the tests and docs to see if any changes are necessary but they may not be.
19
19
 
20
20
  ## Submitting Changes
21
- Once you've finished your change, push it up to your fork and open a PR against puppetlabs/beaker-i18n_helper. Someone from puppetlabs will then review and (hopefully) merge the PR for you.
21
+ Once you've finished your change, push it up to your fork and open a PR against puppetlabs/beaker-task_helper. Someone from puppetlabs will then review and (hopefully) merge the PR for you.
22
22
 
23
23
  ### Commit Messages
24
24
  Please make sure commit messages are meaningful and concise. They should include answers to questions like: Why was this change needed? How did I implement this change? Why did I do it the way I did?
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
- # Specify your gem's dependencies in beaker-i18n_helper.gemspec
5
+ # Specify your gem's dependencies in beaker-task_helper.gemspec
6
6
  gemspec
data/Rakefile CHANGED
@@ -8,8 +8,8 @@ task :default => :spec
8
8
  begin
9
9
  require 'github_changelog_generator/task'
10
10
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
11
- require 'beaker/i18n_helper/version'
12
- config.future_release = "v#{Beaker::I18nHelper::VERSION}"
11
+ require 'beaker/task_helper/version'
12
+ config.future_release = "v#{Beaker::TaskHelper::VERSION}"
13
13
  config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file.\n"
14
14
  config.include_labels = %w[enhancement bug]
15
15
  config.user = 'puppetlabs'
@@ -16,7 +16,7 @@ module Beaker::TaskHelper # rubocop:disable Style/ClassAndModuleChildren
16
16
  'root'
17
17
  end
18
18
 
19
- BOLT_VERSION = '0.7.0'.freeze
19
+ BOLT_VERSION = '0.16.1'.freeze
20
20
 
21
21
  def install_bolt_on(hosts, version = BOLT_VERSION, source = nil)
22
22
  unless default[:docker_image_commands].nil?
@@ -73,7 +73,14 @@ INSTALL_BOLT_PP
73
73
  bolt_path = '/opt/puppetlabs/puppet/bin/bolt'
74
74
  module_path = '/etc/puppetlabs/code/modules'
75
75
  end
76
- bolt_full_cli = "#{bolt_path} task run #{task_name} --insecure -m #{module_path} --nodes #{host} --password #{password}" # rubocop:disable Metrics/LineLength
76
+
77
+ if Puppet::Util::Package.versioncmp(BOLT_VERSION, '0.15.0') > 0
78
+ check = '--no-host-key-check'
79
+ else
80
+ check = '--insecure'
81
+ end
82
+
83
+ bolt_full_cli = "#{bolt_path} task run #{task_name} #{check} -m #{module_path} --nodes #{host} --password #{password}" # rubocop:disable Metrics/LineLength
77
84
  bolt_full_cli << if params.class == Hash
78
85
  " --params '#{params.to_json}'"
79
86
  else
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module TaskHelper
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.3.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-task_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - puppet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-06 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  requirements: []
137
137
  rubyforge_project:
138
- rubygems_version: 2.5.1
138
+ rubygems_version: 2.6.8
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Ruby gem to help testing tasks with Beaker