Module: Dkdeploy::TestEnvironment::Constants
- Includes:
- FileUtils
- Included in:
- Application, Remote
- Defined in:
- lib/dkdeploy/test_environment/constants.rb
Overview
Dkdeploy test constants.
Constant Summary collapse
- @@root =
rubocop:disable Style/ClassVars
File. '../..', __FILE__
Instance Method Summary collapse
-
#assets_path ⇒ String
Assets path.
-
#capistrano_configuration_fixtures_path ⇒ String
Capistrano configuration fixtures path.
-
#config_dev_path ⇒ String
Capistrano config dev path.
-
#current_path ⇒ String
Current path.
-
#deploy_to ⇒ String
Deploy to path.
-
#gem_root ⇒ String
Gem root path.
-
#maintenance_config_file_path ⇒ String
maintenance config file path.
-
#releases_path ⇒ String
Release path.
-
#remote_tmp_path ⇒ String
remote temporary directory path.
-
#server_url ⇒ String
Url to vagrant server.
-
#shared_path ⇒ String
Shared path.
-
#stage ⇒ String
Capistrano stage for tests.
-
#template_path ⇒ String
Test app template path.
-
#test_app_path ⇒ String
Test app path.
-
#tmp_path ⇒ String
Path to temporary directory.
Instance Method Details
#assets_path ⇒ String
Assets path
85 86 87 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 85 def assets_path File.join shared_path, 'assets' end |
#capistrano_configuration_fixtures_path ⇒ String
Capistrano configuration fixtures path
43 44 45 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 43 def capistrano_configuration_fixtures_path File.join gem_root, 'spec', 'fixtures', 'capistrano', 'configuration' end |
#config_dev_path ⇒ String
Capistrano config dev path
50 51 52 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 50 def config_dev_path File.join test_app_path, 'config', 'deploy', 'dev.rb' end |
#current_path ⇒ String
Current path
92 93 94 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 92 def current_path File.join deploy_to, 'current' end |
#deploy_to ⇒ String
Deploy to path
71 72 73 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 71 def deploy_to File.join('/', 'var', 'www', 'dkdeploy') end |
#gem_root ⇒ String
Gem root path
15 16 17 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 15 def gem_root @@root end |
#maintenance_config_file_path ⇒ String
maintenance config file path
106 107 108 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 106 def maintenance_config_file_path File.join shared_path, 'config', 'maintenance.json' end |
#releases_path ⇒ String
Release path
99 100 101 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 99 def releases_path File.join deploy_to, 'releases' end |
#remote_tmp_path ⇒ String
remote temporary directory path
113 114 115 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 113 def remote_tmp_path '/tmp' end |
#server_url ⇒ String
Url to vagrant server
64 65 66 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 64 def server_url 'dkdeploy.dev' end |
#shared_path ⇒ String
Shared path
78 79 80 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 78 def shared_path File.join deploy_to, 'shared' end |
#stage ⇒ String
Capistrano stage for tests
57 58 59 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 57 def stage 'dev' end |
#template_path ⇒ String
Test app template path
22 23 24 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 22 def template_path File.join gem_root, 'spec', 'fixtures', 'application' end |
#test_app_path ⇒ String
Test app path
36 37 38 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 36 def test_app_path File.join tmp_path, 'aruba' end |
#tmp_path ⇒ String
Path to temporary directory
29 30 31 |
# File 'lib/dkdeploy/test_environment/constants.rb', line 29 def tmp_path File.join gem_root, 'tmp' end |