aboutsummaryrefslogtreecommitdiff
path: root/lib/hosts.rb
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2021-10-20 20:43:34 +0100
committerNat Lasseter <user@4574.co.uk>2021-10-20 20:43:34 +0100
commite98cb24a1df4f0b25adab16db925d5790ba9d49c (patch)
tree0d0d51f61c1f33dde8f246e6c310257987b0232d /lib/hosts.rb
parent88e0694bf560d52c86133ff2f40910a2dcb139e9 (diff)
Updates for ruby 2.7.0/3.0.0, Proc.new deprecated
Diffstat (limited to 'lib/hosts.rb')
-rw-r--r--lib/hosts.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hosts.rb b/lib/hosts.rb
index 1a0fc27..1917b93 100644
--- a/lib/hosts.rb
+++ b/lib/hosts.rb
@@ -11,8 +11,8 @@ module SSHConfig
@hosts += morehosts.hosts
end
- def host(name)
- @hosts << Host.new(name, &Proc.new)
+ def host(name, &blk)
+ @hosts << Host.new(name, &blk)
end
def to_s