Sha256: 553b771b8ec0c08ef55d7254d6e3ee88dda6f16aa8f16df59fc41ae040c71898
Contents?: true
Size: 1.31 KB
Versions: 5
Compression:
Stored size: 1.31 KB
Contents
module NSISam class Client class Configuration class << self # Set the default {NSISam::Client} user # # # @param [String] user to set # # @return [String] the user set def user(user = nil) @user = user unless user.nil? @user end # Set the default {NSISam::Client} password # # # @param [String] password to set # # @return [String] the password set def password(password = nil) @password = password unless password.nil? @password end # Set the default {NSISam::Client} host # # # @param [String] host to set # # @return [String] the host set def host(host = nil) @host = host unless host.nil? @host end # Set the default {NSISam::Client} port # # # @param [String] port to set # # @return [String] the port set def port(port = nil) @port = port unless port.nil? @port end # See how are the settings # # @return [Hash] actual settings def settings {user: @user, password: @password, host: @host, port: @port} end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems