Class: Baleen::Configuration
- Inherits:
-
Object
- Object
- Baleen::Configuration
- Includes:
- Default, Singleton
- Defined in:
- lib/baleen/configuration.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#dir ⇒ Object
Returns the value of attribute dir.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Methods included from Default
#default_baleen_server, #default_before_command, #default_branch, #default_ci_port, #default_concurrency, #default_daemon, #default_dir, #default_docker_host, #default_docker_port, #default_features, #default_log_level, #default_port, #default_project_file, #default_work_dir
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 |
# File 'lib/baleen/configuration.rb', line 10 def initialize @log_level = INFO @dir = default_dir end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
8 9 10 |
# File 'lib/baleen/configuration.rb', line 8 def debug @debug end |
#dir ⇒ Object
Returns the value of attribute dir.
8 9 10 |
# File 'lib/baleen/configuration.rb', line 8 def dir @dir end |
#log_level ⇒ Object
Returns the value of attribute log_level.
8 9 10 |
# File 'lib/baleen/configuration.rb', line 8 def log_level @log_level end |
Class Method Details
.debug=(bool) ⇒ Object
19 20 21 |
# File 'lib/baleen/configuration.rb', line 19 def self.debug=(bool) instance.debug = bool end |
.log_level=(level) ⇒ Object
15 16 17 |
# File 'lib/baleen/configuration.rb', line 15 def self.log_level=(level) instance.log_level = level end |