Module: Migrake

Defined in:
lib/migrake.rb,
lib/migrake/dsl.rb,
lib/migrake/version.rb

Defined Under Namespace

Modules: DSL, Runner Classes: Store

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.status_file_directoryObject

Public: Get the directory where we keep the MIGRAKE_STATUS file. If no directory is set, we will try to fetch it from the ENV, using the MIGRAKE_STATUS_DIR environment variable. If that isn’t set either, we default to the working directory.

Returns a Pathname.



24
25
26
# File 'lib/migrake.rb', line 24

def self.status_file_directory
  @status_dir ||= Pathname(ENV.fetch("MIGRAKE_STATUS_DIR", Dir.pwd))
end

.status_file_directory=(dir) ⇒ Object

Public: Change the directory where we keep the MIGRAKE_STATUS file.

dir - A filesystem path.

Returns the directory path.



14
15
16
# File 'lib/migrake.rb', line 14

def self.status_file_directory=(dir)
  @status_dir = Pathname(dir)
end