Class: CfnDslPipeline::CliOptions
- Inherits:
-
Object
- Object
- CfnDslPipeline::CliOptions
- 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
-
#cfndsl_extras ⇒ Object
Returns the value of attribute cfndsl_extras.
-
#op ⇒ Object
Returns the value of attribute op.
-
#output ⇒ Object
Returns the value of attribute output.
-
#pipeline ⇒ Object
Returns the value of attribute pipeline.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize ⇒ CliOptions
constructor
A new instance of CliOptions.
Constructor Details
#initialize ⇒ CliOptions
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_extras ⇒ Object
Returns the value of attribute cfndsl_extras.
8 9 10 |
# File 'lib/cli_options.rb', line 8 def cfndsl_extras @cfndsl_extras end |
#op ⇒ Object
Returns the value of attribute op.
8 9 10 |
# File 'lib/cli_options.rb', line 8 def op @op end |
#output ⇒ Object
Returns the value of attribute output.
8 9 10 |
# File 'lib/cli_options.rb', line 8 def output @output end |
#pipeline ⇒ Object
Returns the value of attribute pipeline.
8 9 10 |
# File 'lib/cli_options.rb', line 8 def pipeline @pipeline end |
#template ⇒ Object
Returns the value of attribute template.
8 9 10 |
# File 'lib/cli_options.rb', line 8 def template @template end |