Module: Dkdeploy::Php::Helpers::DB

Defined in:
lib/dkdeploy/php/helpers/db.rb

Overview

DB related helpers

Instance Method Summary collapse

Instance Method Details

#local_migrations_classes_directoryString

Local migrations classes directory

Returns:

  • (String)


16
17
18
# File 'lib/dkdeploy/php/helpers/db.rb', line 16

def local_migrations_classes_directory
  File.join local_migrations_root_directory, 'classes'
end

#local_migrations_root_directoryString

Local migrations classes directory

Returns:

  • (String)


9
10
11
# File 'lib/dkdeploy/php/helpers/db.rb', line 9

def local_migrations_root_directory
  File.join 'config', 'migrations'
end

#local_migrations_stage_directoryString

Local migrations stages directory

Returns:

  • (String)


23
24
25
# File 'lib/dkdeploy/php/helpers/db.rb', line 23

def local_migrations_stage_directory
  File.join local_migrations_root_directory, 'stage'
end

#remote_migrations_classes_directoryString

Remote migrations classes directory

Returns:

  • (String)


37
38
39
# File 'lib/dkdeploy/php/helpers/db.rb', line 37

def remote_migrations_classes_directory
  File.join(remote_migrations_root_directory, 'classes')
end

#remote_migrations_root_directoryString

Remote migrations root directory

Returns:

  • (String)


30
31
32
# File 'lib/dkdeploy/php/helpers/db.rb', line 30

def remote_migrations_root_directory
  File.join shared_path, fetch(:remote_migrations_root_directory)
end