Class: Tidewave::Tools::WriteProjectFile

Inherits:
Base
  • Object
show all
Defined in:
lib/tidewave/tools/write_project_file.rb

Instance Method Summary collapse

Methods inherited from Base

file_system_tool, file_system_tool?

Instance Method Details

#call(path:, content:) ⇒ Object



20
21
22
23
24
# File 'lib/tidewave/tools/write_project_file.rb', line 20

def call(path:, content:)
  Tidewave::FileTracker.validate_path_is_writable!(path)

  Tidewave::FileTracker.write_file(path, content)
end