Module: Makitzo::FileSystem

Included in:
World::Host
Defined in:
lib/makitzo/file_system.rb

Overview

classes including this module must define a #root method that returns the path of the makitzo control directory (e.g. /home/foo/makitzo)

Constant Summary collapse

INSTALL_FILE =
'INSTALL'
HISTORY_DIR =
'migrations-history'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.install_file(root) ⇒ Object



8
9
10
# File 'lib/makitzo/file_system.rb', line 8

def self.install_file(root)
  File.join(root, INSTALL_FILE)
end

.migration_history_dir(root) ⇒ Object



12
13
14
# File 'lib/makitzo/file_system.rb', line 12

def self.migration_history_dir(root)
  File.join(root, HISTORY_DIR)
end

Instance Method Details

#install_fileObject



16
17
18
# File 'lib/makitzo/file_system.rb', line 16

def install_file
  ::Makitzo::FileSystem.install_file(root)
end

#migration_history_dirObject



20
21
22
# File 'lib/makitzo/file_system.rb', line 20

def migration_history_dir
  ::Makitzo::FileSystem.migration_history_dir(root)
end