Class: CfnDslPipeline::CliOptions

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

Overview

Command Line Options processing

Constant Summary collapse

USAGE =
"Usage: #{File.basename(__FILE__)} input file [ -o output_dir ] [ -b bucket ] OPTIONS [ include1 include2 etc.. ]"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCliOptions

Returns a new instance of CliOptions.



12
13
14
15
16
17
# File 'lib/cli_options.rb', line 12

def initialize
  @output = './'
  @cfndsl_extras = []
  @pipeline = CfnDslPipeline::Options.new
  parse && validate
end

Instance Attribute Details

#cfndsl_extrasObject

Returns the value of attribute cfndsl_extras.



8
9
10
# File 'lib/cli_options.rb', line 8

def cfndsl_extras
  @cfndsl_extras
end

#opObject

Returns the value of attribute op.



8
9
10
# File 'lib/cli_options.rb', line 8

def op
  @op
end

#outputObject

Returns the value of attribute output.



8
9
10
# File 'lib/cli_options.rb', line 8

def output
  @output
end

#pipelineObject

Returns the value of attribute pipeline.



8
9
10
# File 'lib/cli_options.rb', line 8

def pipeline
  @pipeline
end

#templateObject

Returns the value of attribute template.



8
9
10
# File 'lib/cli_options.rb', line 8

def template
  @template
end