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.
14 15 16 |
# File 'lib/aws_as_code/task/compile.rb', line 14 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
12 13 14 |
# File 'lib/aws_as_code/task/compile.rb', line 12 def config @config end |
Instance Method Details
#execute ⇒ Object
18 19 20 |
# File 'lib/aws_as_code/task/compile.rb', line 18 def execute input_files.each { |filename| compile_single_file filename } end |