Module: Dkdeploy::Php::Helpers::DB
- Defined in:
- lib/dkdeploy/php/helpers/db.rb
Overview
DB related helpers
Instance Method Summary collapse
-
#local_migrations_classes_directory ⇒ String
Local migrations classes directory.
-
#local_migrations_root_directory ⇒ String
Local migrations classes directory.
-
#local_migrations_stage_directory ⇒ String
Local migrations stages directory.
-
#remote_migrations_classes_directory ⇒ String
Remote migrations classes directory.
-
#remote_migrations_root_directory ⇒ String
Remote migrations root directory.
Instance Method Details
#local_migrations_classes_directory ⇒ String
Local migrations classes directory
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_directory ⇒ String
Local migrations classes directory
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_directory ⇒ String
Local migrations stages directory
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_directory ⇒ String
Remote migrations classes directory
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_directory ⇒ String
Remote migrations root directory
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 |