Class: CfnDslPipeline::Options

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

Overview

Main pipeline options

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options.



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/options.rb', line 12

def initialize
  self.aws_region         = ENV['AWS_REGION'] || 'ap-southeast-2'
  self.validation_bucket  = ''
  self.validate_cfn_nag   = false
  self.validate_syntax    = false
  self.estimate_cost      = false
  self.save_syntax_report = false
  self.dump_deploy_params = false
  self.save_audit_report  = false
  self.debug_pipeline     = false
  self.debug_cfndsl       = false
  self.debug_audit        = false
  self.cfn_nag = CfnNagConfig.new(
    print_suppression: false,
    fail_on_warnings: true
  )
end

Instance Attribute Details

#aws_regionObject

Returns the value of attribute aws_region.



9
10
11
# File 'lib/options.rb', line 9

def aws_region
  @aws_region
end

#cfn_nagObject

Returns the value of attribute cfn_nag.



9
10
11
# File 'lib/options.rb', line 9

def cfn_nag
  @cfn_nag
end

#debug_auditObject

Returns the value of attribute debug_audit.



11
12
13
# File 'lib/options.rb', line 11

def debug_audit
  @debug_audit
end

#debug_cfndslObject

Returns the value of attribute debug_cfndsl.



11
12
13
# File 'lib/options.rb', line 11

def debug_cfndsl
  @debug_cfndsl
end

#debug_pipelineObject

Returns the value of attribute debug_pipeline.



11
12
13
# File 'lib/options.rb', line 11

def debug_pipeline
  @debug_pipeline
end

#dump_deploy_paramsObject

Returns the value of attribute dump_deploy_params.



9
10
11
# File 'lib/options.rb', line 9

def dump_deploy_params
  @dump_deploy_params
end

#estimate_costObject

Returns the value of attribute estimate_cost.



9
10
11
# File 'lib/options.rb', line 9

def estimate_cost
  @estimate_cost
end

#save_audit_reportObject

Returns the value of attribute save_audit_report.



10
11
12
# File 'lib/options.rb', line 10

def save_audit_report
  @save_audit_report
end

#save_syntax_reportObject

Returns the value of attribute save_syntax_report.



10
11
12
# File 'lib/options.rb', line 10

def save_syntax_report
  @save_syntax_report
end

#validate_cfn_nagObject

Returns the value of attribute validate_cfn_nag.



10
11
12
# File 'lib/options.rb', line 10

def validate_cfn_nag
  @validate_cfn_nag
end

#validate_outputObject

Returns the value of attribute validate_output.



10
11
12
# File 'lib/options.rb', line 10

def validate_output
  @validate_output
end

#validate_syntaxObject

Returns the value of attribute validate_syntax.



10
11
12
# File 'lib/options.rb', line 10

def validate_syntax
  @validate_syntax
end

#validation_bucketObject

Returns the value of attribute validation_bucket.



9
10
11
# File 'lib/options.rb', line 9

def validation_bucket
  @validation_bucket
end