Class: Cerbos::Hub::Stores::Input::FileOperation::Delete

Inherits:
Cerbos::Hub::Stores::Input::FileOperation show all
Defined in:
lib/cerbos/hub/stores/input/file_operation.rb

Overview

Delete a file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:) ⇒ Delete

Specify a file to delete.

Parameters:

  • path (String)

    path of the file to delete.



43
44
45
# File 'lib/cerbos/hub/stores/input/file_operation.rb', line 43

def initialize(path:)
  @path = path
end

Instance Attribute Details

#pathString (readonly)

Path of the file to delete.

Returns:

  • (String)


38
39
40
# File 'lib/cerbos/hub/stores/input/file_operation.rb', line 38

def path
  @path
end