Class: CfnDsl::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- CfnDsl::RakeTask
- Defined in:
- lib/cfndsl/rake_task.rb
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.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cfndsl/rake_task.rb', line 9 def initialize(name = nil) yield self if block_given? desc "Generate Cloudformation" unless ::Rake.application.last_comment 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.
7 8 9 |
# File 'lib/cfndsl/rake_task.rb', line 7 def cfndsl_opts @cfndsl_opts end |