Method: Staticky::Files#write

Defined in:
lib/staticky/files.rb

#write(path, *content) ⇒ Object

Creates a new file or rewrites the contents of an existing file for the given path and content All the intermediate directories are created.

Parameters:

  • path (String, Pathname)

    the path to file

  • content (String, Array<String>)

    the content to write

Raises:



55
56
57
# File 'lib/staticky/files.rb', line 55

def write(path, *content)
  adapter.write(path, *content)
end