Class: DaggerRuby::Config
- Inherits:
-
Object
- Object
- DaggerRuby::Config
- Defined in:
- lib/dagger_ruby/config.rb
Instance Attribute Summary collapse
-
#log_output ⇒ Object
readonly
Returns the value of attribute log_output.
-
#progress ⇒ Object
readonly
Returns the value of attribute progress.
-
#quiet ⇒ Object
readonly
Returns the value of attribute quiet.
-
#silent ⇒ Object
readonly
Returns the value of attribute silent.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#workdir ⇒ Object
readonly
Returns the value of attribute workdir.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}) ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 13 14 |
# File 'lib/dagger_ruby/config.rb', line 7 def initialize( = {}) @log_output = [:log_output] @workdir = [:workdir] @timeout = [:timeout] || 600 @quiet = [:quiet] || ENV["DAGGER_QUIET"]&.to_i @silent = [:silent] || ENV["DAGGER_SILENT"] == "true" @progress = [:progress] || ENV.fetch("DAGGER_PROGRESS", nil) end |
Instance Attribute Details
#log_output ⇒ Object (readonly)
Returns the value of attribute log_output.
5 6 7 |
# File 'lib/dagger_ruby/config.rb', line 5 def log_output @log_output end |
#progress ⇒ Object (readonly)
Returns the value of attribute progress.
5 6 7 |
# File 'lib/dagger_ruby/config.rb', line 5 def progress @progress end |
#quiet ⇒ Object (readonly)
Returns the value of attribute quiet.
5 6 7 |
# File 'lib/dagger_ruby/config.rb', line 5 def quiet @quiet end |
#silent ⇒ Object (readonly)
Returns the value of attribute silent.
5 6 7 |
# File 'lib/dagger_ruby/config.rb', line 5 def silent @silent end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/dagger_ruby/config.rb', line 5 def timeout @timeout end |
#workdir ⇒ Object (readonly)
Returns the value of attribute workdir.
5 6 7 |
# File 'lib/dagger_ruby/config.rb', line 5 def workdir @workdir end |