Method: PDK::Module::UpdateManager#modify_file

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

#modify_file(path, content) ⇒ Object

Store a pending modification to an existing file.

Parameters:

  • path (String)

    The path to the file to be modified.

  • content (String)

    The new content of the file.



22
23
24
# File 'lib/pdk/module/update_manager.rb', line 22

def modify_file(path, content)
  @modified_files << { path: path, content: content }
end