Class: RubyTerraform::Configuration
- Inherits:
-
Object
- Object
- RubyTerraform::Configuration
- Defined in:
- lib/ruby_terraform.rb
Instance Attribute Summary collapse
-
#binary ⇒ Object
Returns the value of attribute binary.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#options ⇒ Object
Returns the value of attribute options.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdin ⇒ Object
Returns the value of attribute stdin.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
- #default_logger ⇒ Object
- #default_options ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
1614 1615 1616 1617 1618 1619 1620 1621 |
# File 'lib/ruby_terraform.rb', line 1614 def initialize @binary = 'terraform' @logger = default_logger @options = @stdin = '' @stdout = $stdout @stderr = $stderr end |
Instance Attribute Details
#binary ⇒ Object
Returns the value of attribute binary.
1602 1603 1604 |
# File 'lib/ruby_terraform.rb', line 1602 def binary @binary end |
#logger ⇒ Object
Returns the value of attribute logger.
1602 1603 1604 |
# File 'lib/ruby_terraform.rb', line 1602 def logger @logger end |
#options ⇒ Object
Returns the value of attribute options.
1602 1603 1604 |
# File 'lib/ruby_terraform.rb', line 1602 def @options end |
#stderr ⇒ Object
Returns the value of attribute stderr.
1602 1603 1604 |
# File 'lib/ruby_terraform.rb', line 1602 def stderr @stderr end |
#stdin ⇒ Object
Returns the value of attribute stdin.
1602 1603 1604 |
# File 'lib/ruby_terraform.rb', line 1602 def stdin @stdin end |
#stdout ⇒ Object
Returns the value of attribute stdout.
1602 1603 1604 |
# File 'lib/ruby_terraform.rb', line 1602 def stdout @stdout end |
Instance Method Details
#default_logger ⇒ Object
1604 1605 1606 1607 1608 |
# File 'lib/ruby_terraform.rb', line 1604 def default_logger logger = Logger.new($stdout) logger.level = Logger::INFO logger end |
#default_options ⇒ Object
1610 1611 1612 |
# File 'lib/ruby_terraform.rb', line 1610 def Options::Factory.new(Options::DEFINITIONS) end |