lib/bolt/target.rb in bolt-0.21.8 vs lib/bolt/target.rb in bolt-0.22.0

- old
+ new

@@ -16,9 +16,25 @@ def initialize(uri, options = nil) @uri = uri @uri_obj = parse(uri) @options = options || {} @options.freeze + + if @options['user'] + @user = @options['user'] + end + + if @options['password'] + @password = @options['password'] + end + + if @options['port'] + @port = @options['port'] + end + + if @options['protocol'] + @protocol = @options['protocol'] + end end def update_conf(conf) @protocol = conf[:transport]