Method: Nodectl::Recipe::DSL#action
- Defined in:
- lib/nodectl/recipe.rb
#action(name, &blk) ⇒ Object
155 156 157 158 |
# File 'lib/nodectl/recipe.rb', line 155 def action(name, &blk) raise "Cannot create action without block" unless block_given? @actions[name] = blk end |