lib/k_builder/base_builder.rb
def add_file_action(file, **opts)
      {
        action: :add_file,
        played: false,
        file: file,
        opts: opts
      }
    end
# Add a file to the target location
#
# @param [String] file The file name with or without relative path, eg. my_file.json or src/my_file.json
# @option opts [String] :content Supply the content that you want to write to the file
# @option opts [String] :template Supply the template that you want to write to the file, template will be processed  ('nobody') From address
# @option opts [String] :content_file File with content, file location is based on where the program is running
# @option opts [String] :template_file File with handlebars templated content that will be transformed, file location is based on the configured template_path
#
# Extra options will be used as data for templates, e.g
# @option opts [String] :to Recipient email
# @option opts [String] :body The email's body
Add a file to the target location
Add a file to the target location
def add_file_action(file, **opts)
      {
        action: :add_file,
        played: false,
        file: file,
        opts: opts
      }
    end
def add_file_action ( file , ** opts ) { action : :add_file , played : false , file : file , opts : opts } end
Add a file to the target location
Add a file to the target location
file
opts
:body The email's body
: body The email ' s body
file The file name with or without relative path, eg. my_file.json or src/my_file.json
file The file name with or without relative path eg . my_file . json or src / my_file . json