Method: PDK::Module::UpdateManager#add_file

Defined in:
lib/pdk/module/update_manager.rb

#add_file(path, content) ⇒ Object

Store a pending file addition.

Parameters:

  • path (String)

    The path where the file will be created.

  • content (String)

    The content of the new file.



27
28
29
# File 'lib/pdk/module/update_manager.rb', line 27

def add_file(path, content)
  @added_files << { path: path, content: content }
end