diff options
author | Mingxiang Xue <mingxiangxue@gmail.com> | 2020-03-11 18:14:07 +0800 |
---|---|---|
committer | Mingxiang Xue <mingxiangxue@gmail.com> | 2020-03-11 18:14:07 +0800 |
commit | aea5223eea51c2b60e6373dc8175d49f7520f4e6 (patch) | |
tree | aad7178eb8741d3df23d6ef9dda4f10e89e3e477 /lib | |
parent | 990695c4892d8f51a7ce29d4bfc987a8f2738a0e (diff) | |
download | net-ssh-aea5223eea51c2b60e6373dc8175d49f7520f4e6.tar.gz |
Add integration test for set_env option
Signed-off-by: Mingxiang Xue <mingxiangxue@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/ssh/config.rb | 2 | ||||
-rw-r--r-- | lib/net/ssh/connection/channel.rb | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/lib/net/ssh/config.rb b/lib/net/ssh/config.rb index fdc2e09..a40262e 100644 --- a/lib/net/ssh/config.rb +++ b/lib/net/ssh/config.rb @@ -216,7 +216,6 @@ module Net userknownhostsfile: :user_known_hosts_file, checkhostip: :check_host_ip }.freeze - # rubocop:disable Metrics/CyclomaticComplexity def translate_config_key(hash, key, value, settings) case key when :ciphers @@ -285,7 +284,6 @@ module Net hash[TRANSLATE_CONFIG_KEY_RENAME_MAP[key]] = value end end - # rubocop:enable Metrics/CyclomaticComplexity def setup_proxy(type, value) case type diff --git a/lib/net/ssh/connection/channel.rb b/lib/net/ssh/connection/channel.rb index e65e5c1..7bfee72 100644 --- a/lib/net/ssh/connection/channel.rb +++ b/lib/net/ssh/connection/channel.rb @@ -682,12 +682,9 @@ module Net # Set a +Hash+ of environment variables in the remote process' environment. # # channel.set_remote_env foo: 'bar', baz: 'whale' - # - # rubocop:disable Naming/AccessorMethodName def set_remote_env(env) env.each { |key, value| self.env(key, value) } end - # rubocop:enable Naming/AccessorMethodName end end |