Class: EPO::DB::PrepareDirAction

Inherits:
Struct
  • Object
show all
Defined in:
lib/epo/core/db.rb

Overview

An action to prepare the directory for a resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



193
194
195
# File 'lib/epo/core/db.rb', line 193

def path
  @path
end

Instance Method Details

#performObject



194
195
196
# File 'lib/epo/core/db.rb', line 194

def perform
  FileUtils.mkdir_p(path)
end