lib/generators/app_builder/install/templates/deploy.rake in app_builder-rails-0.1.0 vs lib/generators/app_builder/install/templates/deploy.rake in app_builder-rails-0.1.1
- old
+ new
@@ -1,10 +1,14 @@
namespace :deploy do
+ def deploy_path
+ File.expand_path("../../config/deploy", __dir__)
+ end
+
def build_env
@build_env ||= AppBuilder::Environment.new(
ENV.fetch("BILD_ENV", "develop"),
- File.expand_path("../../config/deploy/environment.yml", __dir__),
+ File.join(deploy_path, "environment.yml"),
)
end
def build_config
@build_config ||= AppBuilder::Config.new(
@@ -13,9 +17,10 @@
remote_app_home_base: build_env[:remote_app_home_base],
resource_host: build_env[:resource_host],
resource_user: build_env[:resource_user],
resource_ssh_options: build_env[:resource_ssh_options].symbolize_keys,
resource_document_root: build_env[:resource_document_root],
+ manifest_template_path: File.join(deploy_path, "templates", "manifest.yml.erb"),
)
end
desc "Upload builded source and stretcher manifest file."
task :upload do