knife-push 1.0.3 → 1.1.1

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
- SHA1:
3
- metadata.gz: 7359291d95a4127626ee1ded020f4dac0b190bc3
4
- data.tar.gz: c93d14229d13dfc877620ba927e523f51df6809b
2
+ SHA256:
3
+ metadata.gz: 5fba5ca3fc4266ac3360352f35d399a85fc3c803105cf7c418171d3f16e0b467
4
+ data.tar.gz: 84381a4bc9133f755be42362ff458bb4e9a2d562b7fc62867ce9e68ce4648abc
5
5
  SHA512:
6
- metadata.gz: 82a129ac9723ff271536e4648915da93563fe5c0a55f85c58033dcbf95f8a2323556c26c81825d7a904966847844b01ad665e1020167be1194718a6a02d8effc
7
- data.tar.gz: ce5195d21102c7e89724c7a2b617e83733c88c11185a99cd116249cc8b0080387e2c77dd7c507d961959dabba9c7f5c3b99d82dc33acc492d645fb0dfceb3470
6
+ metadata.gz: 8416c9643d1a259b1fbd5b1bb8eb1dcf7b1ded683a36c2a6f975fe960d954cf152a8163c9732b0efbc9c99ae03dc9f2730121a1912021287495533c4e9d7145c
7
+ data.tar.gz: 5d2895ec86e8f444a506c2248f342cf4926dfdf086b32dbd98d233271949507e80eb4580aa8de7552c8f5986cf7605edf2a12b4644fd720de728d60c08174de7
data/README.md CHANGED
@@ -6,7 +6,7 @@ The knife push plugin is used by the Chef workstation to interact with the Push
6
6
 
7
7
  ## Requirements
8
8
 
9
- - Chef 12.0 higher
9
+ - Chef 13.0 higher
10
10
  - Ruby 2.2.2 or higher
11
11
 
12
12
  ## Installation:
@@ -158,7 +158,7 @@ For information on contributing to this project see <https://github.com/chef/che
158
158
 
159
159
  **Author:** John Keiser([jkeiser@chef.io](mailto:jkeiser@chef.io))
160
160
 
161
- **Copyright:** Copyright 2008-2016, Chef Software, Inc.
161
+ **Copyright:** Copyright 2008-2018, Chef Software, Inc.
162
162
 
163
163
  **License:** Apache License, Version 2.0
164
164
 
@@ -41,7 +41,7 @@ class Chef
41
41
  exit 1
42
42
  end
43
43
 
44
- return node_names
44
+ node_names
45
45
  end
46
46
 
47
47
  def status_string(job)
@@ -117,7 +117,7 @@ class Chef
117
117
  exit 1
118
118
  end
119
119
  contents = ""
120
- if File.exists?(file_name)
120
+ if File.exist?(file_name)
121
121
  File.open(file_name, "rb") do |file|
122
122
  contents = file.read
123
123
  end
@@ -125,7 +125,7 @@ class Chef
125
125
  ui.error "#{file_name} not found"
126
126
  exit 1
127
127
  end
128
- return contents
128
+ contents
129
129
  end
130
130
 
131
131
  def get_env(config)
@@ -21,9 +21,9 @@ class Chef
21
21
  banner "knife job output <job id> <node> [<node> ...]"
22
22
 
23
23
  option :channel,
24
- :long => "--channel stdout|stderr",
25
- :default => "stdout",
26
- :description => "Which output channel to fetch (default stdout)."
24
+ long: "--channel stdout|stderr",
25
+ default: "stdout",
26
+ description: "Which output channel to fetch (default stdout)."
27
27
 
28
28
  def run
29
29
  job_id = name_args[0]
@@ -38,7 +38,7 @@ class Chef
38
38
  end
39
39
 
40
40
  def get_channel(channel)
41
- channel = channel || "stdout"
41
+ channel ||= "stdout"
42
42
  case channel
43
43
  when "stdout"
44
44
  return channel
@@ -31,58 +31,58 @@ class Chef
31
31
  banner "knife job start <command> [<node> <node> ...]"
32
32
 
33
33
  option :run_timeout,
34
- :long => "--timeout TIMEOUT",
35
- :description => "Maximum time the job will be allowed to run (in seconds)."
34
+ long: "--timeout TIMEOUT",
35
+ description: "Maximum time the job will be allowed to run (in seconds)."
36
36
 
37
37
  option :quorum,
38
- :short => "-q QUORUM",
39
- :long => "--quorum QUORUM",
40
- :default => "100%",
41
- :description => "Pushy job quorum. Percentage (-q 50%) or Count (-q 145)."
38
+ short: "-q QUORUM",
39
+ long: "--quorum QUORUM",
40
+ default: "100%",
41
+ description: "Pushy job quorum. Percentage (-q 50%) or Count (-q 145)."
42
42
 
43
43
  option :search,
44
- :short => "-s QUERY",
45
- :long => "--search QUERY",
46
- :required => false,
47
- :description => "Solr query for list of job candidates."
44
+ short: "-s QUERY",
45
+ long: "--search QUERY",
46
+ required: false,
47
+ description: "Solr query for list of job candidates."
48
48
 
49
49
  option :send_file,
50
- :long => "--file FILE",
51
- :default => nil,
52
- :description => "File to send to job."
50
+ long: "--file FILE",
51
+ default: nil,
52
+ description: "File to send to job."
53
53
 
54
54
  option :capture_output,
55
- :long => "--capture",
56
- :boolean => true,
57
- :default => false,
58
- :description => "Capture job output."
55
+ long: "--capture",
56
+ boolean: true,
57
+ default: false,
58
+ description: "Capture job output."
59
59
 
60
60
  option :with_env,
61
- :long => "--with-env ENV",
62
- :default => nil,
63
- :description => "JSON blob of environment variables to set."
61
+ long: "--with-env ENV",
62
+ default: nil,
63
+ description: "JSON blob of environment variables to set."
64
64
 
65
65
  option :as_user,
66
- :long => "--as-user USER",
67
- :default => nil,
68
- :description => "User id to run as."
66
+ long: "--as-user USER",
67
+ default: nil,
68
+ description: "User id to run as."
69
69
 
70
70
  option :in_dir,
71
- :long => "--in-dir DIR",
72
- :default => nil,
73
- :description => "Directory to execute the command in."
71
+ long: "--in-dir DIR",
72
+ default: nil,
73
+ description: "Directory to execute the command in."
74
74
 
75
75
  option :nowait,
76
- :long => "--nowait",
77
- :short => "-b",
78
- :boolean => true,
79
- :default => false,
80
- :description => "Rather than waiting for each job to complete, exit immediately after starting the job."
76
+ long: "--nowait",
77
+ short: "-b",
78
+ boolean: true,
79
+ default: false,
80
+ description: "Rather than waiting for each job to complete, exit immediately after starting the job."
81
81
 
82
82
  option :poll_interval,
83
- :long => "--poll-interval RATE",
84
- :default => 1.0,
85
- :description => "Repeat interval for job status update (in seconds)."
83
+ long: "--poll-interval RATE",
84
+ default: 1.0,
85
+ description: "Repeat interval for job status update (in seconds)."
86
86
 
87
87
  def run
88
88
  job_name = @name_args[0]
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Knife
3
3
  module Push
4
- VERSION = "1.0.3"
4
+ VERSION = "1.1.1".freeze
5
5
  MAJOR, MINOR, TINY = VERSION.split(".")
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-push
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-01 00:00:00.000000000 Z
11
+ date: 2018-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -16,15 +16,15 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 12.7.2
19
+ version: '13.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 12.7.2
27
- description: Knife plugin for Chef push
26
+ version: '13.0'
27
+ description: Knife plugin for Chef Push Jobs
28
28
  email: jkeiser@chef.io
29
29
  executables: []
30
30
  extensions: []
@@ -34,7 +34,6 @@ extra_rdoc_files:
34
34
  files:
35
35
  - LICENSE
36
36
  - README.md
37
- - Rakefile
38
37
  - lib/chef/knife/job_helpers.rb
39
38
  - lib/chef/knife/job_list.rb
40
39
  - lib/chef/knife/job_output.rb
@@ -42,7 +41,7 @@ files:
42
41
  - lib/chef/knife/job_status.rb
43
42
  - lib/chef/knife/node_status.rb
44
43
  - lib/knife-push/version.rb
45
- homepage: https://www.chef.io
44
+ homepage: https://github.com/chef/knife-push/
46
45
  licenses:
47
46
  - Apache-2.0
48
47
  metadata: {}
@@ -62,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
61
  version: '0'
63
62
  requirements: []
64
63
  rubyforge_project:
65
- rubygems_version: 2.6.11
64
+ rubygems_version: 2.7.6
66
65
  signing_key:
67
66
  specification_version: 4
68
- summary: Knife plugin for Chef push
67
+ summary: Knife plugin for Chef Push Jobs
69
68
  test_files: []
data/Rakefile DELETED
@@ -1,14 +0,0 @@
1
- require "bundler"
2
- require "rubygems"
3
- require "rspec/core/rake_task"
4
-
5
- Bundler::GemHelper.install_tasks
6
-
7
- task :default => :spec
8
-
9
- desc "Run specs"
10
- RSpec::Core::RakeTask.new(:spec) do |spec|
11
- spec.pattern = "spec/**/*_spec.rb"
12
- end
13
-
14
- gem_spec = eval(File.read("knife-push.gemspec"))