Class: AwsAsCode::Task::Compile
- Inherits:
-
Object
- Object
- AwsAsCode::Task::Compile
- Defined in:
- lib/aws_as_code/task/compile.rb
Overview
Compiles all input templates and puts JSON to the output directory
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config) ⇒ Compile
constructor
A new instance of Compile.
Constructor Details
#initialize(config) ⇒ Compile
Returns a new instance of Compile.
13 14 15 |
# File 'lib/aws_as_code/task/compile.rb', line 13 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
11 12 13 |
# File 'lib/aws_as_code/task/compile.rb', line 11 def config @config end |
Instance Method Details
#execute ⇒ Object
17 18 19 |
# File 'lib/aws_as_code/task/compile.rb', line 17 def execute input_files.each { |filename| compile_single_file filename } end |