Sha256: 572d39575b3699d09c201f9e29d5ecaccebd5a82471701bc0a8b5aa78121038a
Contents?: true
Size: 713 Bytes
Versions: 4
Compression:
Stored size: 713 Bytes
Contents
module EbDeployer class Application def initialize(name, eb_driver, s3_driver) @name = name @eb_driver = eb_driver @s3_driver = s3_driver end def create_version(version_label, package) create_application_if_not_exists package = Package.new(package, @name + "-packages", @s3_driver) package.upload unless @eb_driver.application_version_labels.include?(version_label) @eb_driver.create_application_version(@name, version_label, package.source_bundle) end end private def create_application_if_not_exists unless @eb_driver.application_exists?(@name) @eb_driver.create_application(@name) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems