Class: CfnDsl::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- CfnDsl::RakeTask
- Defined in:
- lib/cfndsl/rake_task.rb
Overview
Rake Task
Instance Attribute Summary collapse
-
#cfndsl_opts ⇒ Object
Returns the value of attribute cfndsl_opts.
Instance Method Summary collapse
-
#initialize(name = nil) {|_self| ... } ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(name = nil) {|_self| ... } ⇒ RakeTask
Returns a new instance of RakeTask.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cfndsl/rake_task.rb', line 11 def initialize(name = nil) yield self if block_given? desc 'Generate Cloudformation' unless ::Rake.application.last_description task(name || :generate) do |_t, _args| cfndsl_opts[:files].each do |opts| generate(opts) end end end |
Instance Attribute Details
#cfndsl_opts ⇒ Object
Returns the value of attribute cfndsl_opts.
9 10 11 |
# File 'lib/cfndsl/rake_task.rb', line 9 def cfndsl_opts @cfndsl_opts end |