Class: Tamashii::Agent::Config
- Inherits:
-
Config
- Object
- Config
- Tamashii::Agent::Config
- Defined in:
- lib/tamashii/agent/config.rb
Constant Summary collapse
- AUTH_TYPES =
[:none, :token]
Instance Method Summary collapse
Instance Method Details
#auth_type(type = nil) ⇒ Object
17 18 19 20 21 |
# File 'lib/tamashii/agent/config.rb', line 17 def auth_type(type = nil) return @auth_type ||= :none if type.nil? return unless AUTH_TYPES.include?(type) @auth_type = type.to_sym end |
#log_file(value = nil) ⇒ Object
29 30 31 32 33 |
# File 'lib/tamashii/agent/config.rb', line 29 def log_file(value = nil) return @log_file ||= STDOUT if value.nil? Client.config.log_file(value) @log_file = value end |