choria-mcorpc-support 2.26.5 → 2.28.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 +4 -4
- data/.rspec +1 -0
- data/.rubocop.yml +344 -0
- data/CHANGELOG.md +114 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +45 -0
- data/Gemfile +23 -0
- data/LICENSE +202 -0
- data/NOTICE +6 -0
- data/README.md +14 -0
- data/Rakefile +58 -0
- data/etc/client.cfg.dist +21 -0
- data/etc/facts.yaml.dist +2 -0
- data/etc/server.cfg.dist +22 -0
- data/etc/ssl/PLACEHOLDER +0 -0
- data/etc/ssl/clients/PLACEHOLDER +0 -0
- data/lib/mcollective/connector/nats.rb +12 -8
- data/lib/mcollective/monkey_patches.rb +10 -111
- data/lib/mcollective/pluginpackager/forge_packager.rb +1 -1
- data/lib/mcollective/rpc/client.rb +2 -1
- data/lib/mcollective/ssl.rb +9 -19
- data/lib/mcollective/util/choria.rb +1 -7
- data/lib/mcollective/util/playbook/tasks/mcollective_task.rb +3 -2
- data/lib/mcollective/util/tasks_support.rb +5 -1
- data/lib/mcollective/util.rb +2 -47
- data/lib/mcollective.rb +0 -1
- metadata +46 -3
data/lib/mcollective/util.rb
CHANGED
|
@@ -331,12 +331,6 @@ module MCollective
|
|
|
331
331
|
"%s%s%s" % [color(code), msg, color(:reset)]
|
|
332
332
|
end
|
|
333
333
|
|
|
334
|
-
# Returns the current ruby version as per RUBY_VERSION, mostly
|
|
335
|
-
# doing this here to aid testing
|
|
336
|
-
def self.ruby_version
|
|
337
|
-
RUBY_VERSION
|
|
338
|
-
end
|
|
339
|
-
|
|
340
334
|
def self.mcollective_version
|
|
341
335
|
MCollective::VERSION
|
|
342
336
|
end
|
|
@@ -545,50 +539,11 @@ module MCollective
|
|
|
545
539
|
number == 0 ? 1 : number
|
|
546
540
|
end
|
|
547
541
|
|
|
548
|
-
def self.get_hidden_input_on_windows # rubocop:disable Naming/AccessorMethodName
|
|
549
|
-
require "Win32API"
|
|
550
|
-
|
|
551
|
-
# Hook into getch from crtdll. Keep reading all keys till return
|
|
552
|
-
# or newline is hit.
|
|
553
|
-
# If key is backspace or delete, then delete the character and update
|
|
554
|
-
# the buffer.
|
|
555
|
-
input = ""
|
|
556
|
-
|
|
557
|
-
while char = Win32API.new("crtdll", "_getch", [], "I").Call
|
|
558
|
-
break if [10, 13].include?(char) # return or newline
|
|
559
|
-
|
|
560
|
-
if [127, 8].include?(char) # backspace and delete
|
|
561
|
-
input.slice!(-1, 1) unless input.empty?
|
|
562
|
-
else
|
|
563
|
-
input << char.chr
|
|
564
|
-
end
|
|
565
|
-
end
|
|
566
|
-
|
|
567
|
-
input
|
|
568
|
-
end
|
|
569
|
-
|
|
570
|
-
def self.get_hidden_input_on_unix # rubocop:disable Naming/AccessorMethodName
|
|
571
|
-
raise "Could not hook to stdin to hide input. If using SSH, try using -t flag while connecting to server." unless $stdin.tty?
|
|
572
|
-
raise "Could not hide input using stty command." unless system "stty -echo -icanon"
|
|
573
|
-
|
|
574
|
-
input = $stdin.gets
|
|
575
|
-
ensure
|
|
576
|
-
raise "Could not enable echoing of input. Try executing `stty echo icanon` to debug." unless system "stty echo icanon"
|
|
577
|
-
|
|
578
|
-
input
|
|
579
|
-
end
|
|
580
|
-
|
|
581
542
|
def self.get_hidden_input(message="Please enter data: ")
|
|
582
543
|
print message unless message.nil?
|
|
583
544
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
input = $stdin.noecho(&:gets)
|
|
587
|
-
elsif windows? # Use hacks to get hidden input on Ruby <1.9.3
|
|
588
|
-
input = get_hidden_input_on_windows
|
|
589
|
-
else
|
|
590
|
-
input = get_hidden_input_on_unix
|
|
591
|
-
end
|
|
545
|
+
require "io/console"
|
|
546
|
+
input = $stdin.noecho(&:gets)
|
|
592
547
|
|
|
593
548
|
input.chomp! if input
|
|
594
549
|
|
data/lib/mcollective.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: choria-mcorpc-support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.28.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- R.I.Pienaar
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: systemu
|
|
@@ -50,6 +50,34 @@ dependencies:
|
|
|
50
50
|
- - "<"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: 0.7.0
|
|
53
|
+
- !ruby/object:Gem::Dependency
|
|
54
|
+
name: base64
|
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '0'
|
|
60
|
+
type: :runtime
|
|
61
|
+
prerelease: false
|
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
- - ">="
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: '0'
|
|
67
|
+
- !ruby/object:Gem::Dependency
|
|
68
|
+
name: logger
|
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - ">="
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: '0'
|
|
74
|
+
type: :runtime
|
|
75
|
+
prerelease: false
|
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
77
|
+
requirements:
|
|
78
|
+
- - ">="
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '0'
|
|
53
81
|
description: Libraries enabling Ruby support for the Choria Orchestration Server
|
|
54
82
|
email: rip@devco.net
|
|
55
83
|
executables:
|
|
@@ -57,7 +85,22 @@ executables:
|
|
|
57
85
|
extensions: []
|
|
58
86
|
extra_rdoc_files: []
|
|
59
87
|
files:
|
|
88
|
+
- ".rspec"
|
|
89
|
+
- ".rubocop.yml"
|
|
90
|
+
- CHANGELOG.md
|
|
91
|
+
- CODE_OF_CONDUCT.md
|
|
92
|
+
- CONTRIBUTING.md
|
|
93
|
+
- Gemfile
|
|
94
|
+
- LICENSE
|
|
95
|
+
- NOTICE
|
|
96
|
+
- README.md
|
|
97
|
+
- Rakefile
|
|
60
98
|
- bin/mco
|
|
99
|
+
- etc/client.cfg.dist
|
|
100
|
+
- etc/facts.yaml.dist
|
|
101
|
+
- etc/server.cfg.dist
|
|
102
|
+
- etc/ssl/PLACEHOLDER
|
|
103
|
+
- etc/ssl/clients/PLACEHOLDER
|
|
61
104
|
- lib/mcollective.rb
|
|
62
105
|
- lib/mcollective/agent.rb
|
|
63
106
|
- lib/mcollective/agent/aaa_signer.ddl
|
|
@@ -239,7 +282,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
239
282
|
requirements:
|
|
240
283
|
- - ">="
|
|
241
284
|
- !ruby/object:Gem::Version
|
|
242
|
-
version: '
|
|
285
|
+
version: '3.4'
|
|
243
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
287
|
requirements:
|
|
245
288
|
- - ">="
|