This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Templates for CF config files. Also change deployment config f…
…rom json to yml."
- Loading branch information
Showing
64 changed files
with
964 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
DEFAULT_DEPLOYMENT_CONFIG = "deployments/singlehost.json.erb" | ||
DEFAULT_DEPLOYMENT_NAME = "singlehost" | ||
DEFAULT_DEPLOYMENT_HOME = File.expand_path(File.join(ENV["HOME"], ".cloudfoundry", DEFAULT_DEPLOYMENT_NAME)) | ||
DEPLOYMENT_DEFAULT_SPEC = "deployments/devbox.yml.erb" | ||
DEPLOYMENT_DEFAULT_NAME = "devbox" | ||
DEPLOYMENT_CONFIG_DIR_NAME = "config" | ||
DEPLOYMENT_CONFIG_FILE_NAME = "deploy.json" | ||
|
||
CONFIG_BASE_DIR = "dev_setup/.config" | ||
DEPLOYMENT_FILE = "deploy.json" | ||
class Deployment | ||
class << self | ||
def get_home(name) | ||
File.expand_path(File.join(ENV["HOME"], ".cloudfoundry", name)) | ||
end | ||
|
||
def get_config_path(home) | ||
File.expand_path(File.join(home, DEPLOYMENT_CONFIG_DIR_NAME)) | ||
end | ||
|
||
def get_config_file(config_path) | ||
File.expand_path(File.join(config_path, DEPLOYMENT_CONFIG_FILE_NAME)) | ||
end | ||
end | ||
end |
Oops, something went wrong.