Class: Jets::Core::Config::Bootstrap

Inherits:
Base
  • Object
show all
Includes:
Jets::Cfn, Code, Codebuild, S3Bucket, Helpers
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

Attributes included from S3Bucket

#s3_bucket

Attributes included from Codebuild

#codebuild

Attributes included from Code

#code

Instance Method Summary collapse

Methods included from Helpers::Ssm

#ssm_env

Methods inherited from Base

#config, #configure

Methods included from Util::Camelize

#camelize

Constructor Details

#initializeBootstrap

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

#infraObject

Returns the value of attribute infra.



10
11
12
# File 'lib/jets/core/config/bootstrap.rb', line 10

def infra
  @infra
end

#loggerObject

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_loggerObject



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