sconb 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sconb/ext/net/ssh/config.rb +1 -1
- data/lib/sconb/ssh_config.rb +2 -2
- data/lib/sconb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd3dfbf8c6ef0b647bde944ed016395432e6551
|
4
|
+
data.tar.gz: fc77840d0e981a0fbe9b149263043985ed0f55a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34a6b9d1c8ffdb6667843f8aec9f3ac84b5a7477043e2a8d2e21430074495958b94038d23039426b49956954c37198cf0a7a078fe99d7a47b590348de8f7c738
|
7
|
+
data.tar.gz: cd0a25c119c5a2c6b6e4c63db698f8447349b54e8ed5e91d47f5c29b9c4a6421b35a45a4aa0ffb27ef8419890a52d848dd30ee7b913d1dd08631f74dfdb920b2
|
@@ -4,7 +4,7 @@ module Net
|
|
4
4
|
class << self
|
5
5
|
# Original code is Net::SSH::Config.load (https://github.com/net-ssh/net-ssh/blob/master/LICENSE.txt)
|
6
6
|
# rubocop:disable all
|
7
|
-
def parse_with_key(content, host, options)
|
7
|
+
def parse_with_key(content, host, options = {})
|
8
8
|
settings = {}
|
9
9
|
return settings unless content
|
10
10
|
|
data/lib/sconb/ssh_config.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
module Sconb
|
2
2
|
module SSHConfig
|
3
3
|
class << self
|
4
|
-
def load(path, regexp_str = '.*', options =
|
4
|
+
def load(path, regexp_str = '.*', options = {})
|
5
5
|
file = File.expand_path(path)
|
6
6
|
content = File.readable?(file) ? File.open(file).read : nil
|
7
7
|
parse(content, regexp_str, options)
|
8
8
|
end
|
9
9
|
|
10
|
-
def parse(content, regexp_str = '.*', options =
|
10
|
+
def parse(content, regexp_str = '.*', options = {})
|
11
11
|
@regexp = Regexp.new(regexp_str)
|
12
12
|
@options = options
|
13
13
|
@content = content
|
data/lib/sconb/version.rb
CHANGED