lib/pdk/generate/task.rb
def write_task_metadata
        write_file(File.join(module_dir, 'tasks', "#{task_name}.json")) do
          task_metadata = template_data.dup
          task_metadata.delete(:name)
          JSON.pretty_generate(task_metadata)
        end
      end
# Writes the <module>/tasks/<task_name>.json metadata file for the task.
#
# @api private
Writes the /tasks/.json metadata file for the task.
Writes the / tasks / . json metadata file for the task .
def write_task_metadata
        write_file(File.join(module_dir, 'tasks', "#{task_name}.json")) do
          task_metadata = template_data.dup
          task_metadata.delete(:name)
          JSON.pretty_generate(task_metadata)
        end
      end
def write_task_metadata write_file ( File . join ( module_dir , 'tasks' , "#{task_name}.json" ) ) do task_metadata = template_data . dup task_metadata . delete ( :name ) JSON . pretty_generate ( task_metadata ) end end
Writes the <module>/tasks/<task_name>.json metadata file for the task.
Writes the <module > / tasks / <task_name > . json metadata file for the task .
api
None