Class: DaggerRuby::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/dagger_ruby/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @log_output = options[:log_output]
  @workdir = options[:workdir]
  @timeout = options[:timeout] || 600
  @quiet = options[:quiet] || ENV["DAGGER_QUIET"]&.to_i
  @silent = options[:silent] || ENV["DAGGER_SILENT"] == "true"
  @progress = options[:progress] || ENV.fetch("DAGGER_PROGRESS", nil)
end

Instance Attribute Details

#log_outputObject (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

#progressObject (readonly)

Returns the value of attribute progress.



5
6
7
# File 'lib/dagger_ruby/config.rb', line 5

def progress
  @progress
end

#quietObject (readonly)

Returns the value of attribute quiet.



5
6
7
# File 'lib/dagger_ruby/config.rb', line 5

def quiet
  @quiet
end

#silentObject (readonly)

Returns the value of attribute silent.



5
6
7
# File 'lib/dagger_ruby/config.rb', line 5

def silent
  @silent
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



5
6
7
# File 'lib/dagger_ruby/config.rb', line 5

def timeout
  @timeout
end

#workdirObject (readonly)

Returns the value of attribute workdir.



5
6
7
# File 'lib/dagger_ruby/config.rb', line 5

def workdir
  @workdir
end