Sha256: e823ec73c9d6e65e23736c9cd686efa96cbcad4f3756bf2dd6344dd2d141accc

Contents?: true

Size: 853 Bytes

Versions: 2

Compression:

Stored size: 853 Bytes

Contents

namespace :deploy do
  def deploy_params(env)
    {
      upload_id:            env.upload_id,
      remote_app_home_base: env.remote_app_home_base
    }
  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_s3.rake
app_builder-rails-0.2.11 lib/generators/app_builder/install/templates/deploy_s3.rake