Class: Jets::Core::Config::Bootstrap
- Defined in:
- lib/jets/core/config/bootstrap.rb,
lib/jets/core/config/bootstrap/cfn.rb,
lib/jets/core/config/bootstrap/code.rb,
lib/jets/core/config/bootstrap/codebuild.rb,
lib/jets/core/config/bootstrap/s3_bucket.rb
Defined Under Namespace
Modules: Cfn, Code, Codebuild, S3Bucket
Instance Attribute Summary collapse
-
#infra ⇒ Object
Returns the value of attribute infra.
-
#logger ⇒ Object
Returns the value of attribute logger.
Attributes included from S3Bucket
Attributes included from Codebuild
Attributes included from Code
Instance Method Summary collapse
- #default_logger ⇒ Object
-
#initialize ⇒ Bootstrap
constructor
A new instance of Bootstrap.
Methods included from Helpers::Ssm
Methods inherited from Base
Methods included from Util::Camelize
Constructor Details
#initialize ⇒ Bootstrap
Returns a new instance of Bootstrap.
11 12 13 14 15 |
# File 'lib/jets/core/config/bootstrap.rb', line 11 def initialize(*) super @infra = false @logger = default_logger end |
Instance Attribute Details
#infra ⇒ Object
Returns the value of attribute infra.
10 11 12 |
# File 'lib/jets/core/config/bootstrap.rb', line 10 def infra @infra end |
#logger ⇒ Object
Returns the value of attribute logger.
10 11 12 |
# File 'lib/jets/core/config/bootstrap.rb', line 10 def logger @logger end |
Instance Method Details
#default_logger ⇒ Object
17 18 19 20 21 22 |
# File 'lib/jets/core/config/bootstrap.rb', line 17 def default_logger logger = ActiveSupport::Logger.new($stderr) logger.formatter = ActiveSupport::Logger::SimpleFormatter.new # no timestamps logger.level = ENV["JETS_LOG_LEVEL"] || :info logger end |