Sha256: f68033c7868656c4f71bc890cdb52ed498cee4850007996d71601cf88d887cb0
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
namespace :deploy do def deploy_params(env) { resource_type: env.resource_type, upload_id: env.upload_id, remote_app_home_base: env.remote_app_home_base, resource_host: env.resource_host, resource_user: env.resource_user, resource_ssh_options: env.resource_ssh_options.symbolize_keys, resource_document_root: env.resource_document_root } end def deploy_config env = Vars.new(path: "config/deploy/environment.yml", source_type: :git) config = AppBuilder::Config.new(**deploy_params(env)) config.manifest_template_path = File.join(config.archive_path, "config", "deploy", "templates", "manifest.yml.erb") config.after_archive = [ proc { env.resolve_templates( File.join(config.archive_path, "config", "deploy", "templates"), File.join(config.archive_path, "config"), excludes: ["manifest.yml"] ) } ] config end desc "Upload builded source and stretcher manifest file." task :prepare do AppBuilder::Uploader.upload(deploy_config) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
app_builder-rails-0.2.12 | lib/generators/app_builder/install/templates/deploy.rake |
app_builder-rails-0.2.11 | lib/generators/app_builder/install/templates/deploy.rake |