ruby-2.7 needs ** for key-value-pair-arguments

This commit is contained in:
Denis Knauf 2022-06-17 12:46:37 +02:00
parent ad44237905
commit d25e1a9762

View file

@ -179,10 +179,10 @@ class Knot::Protocol
def zone( zone) @zones[zone.to_s.to_sym] end def zone( zone) @zones[zone.to_s.to_sym] end
def conf_set( **opts) call opts.update( command: 'conf-set') end def conf_set( **opts) call **opts.update( command: 'conf-set') end
def conf_unset( **opts) call opts.update( command: 'conf-set') end def conf_unset( **opts) call **opts.update( command: 'conf-set') end
def zone_set( **opts) call opts.update( command: 'zone-set') end def zone_set( **opts) call **opts.update( command: 'zone-set') end
def zone_unset( **opts) call opts.update( command: 'zone-unset') end def zone_unset( **opts) call **opts.update( command: 'zone-unset') end
def zone_get( **opts) call opts.update( command: 'zone-get') end def zone_get( **opts) call **opts.update( command: 'zone-get') end
end end