Sha256: 844326899beff5d47ef81b577ec5a1e4d6b77e756271e3e506120f10d4cfc030
Contents?: true
Size: 1.79 KB
Versions: 1
Compression:
Stored size: 1.79 KB
Contents
module Phase module Config class Deploy # @return [Array<Environment>] the configured deployment environments attr_reader :environments # @return [String] the compact or fully-qualified address of the Docker repository # @example Sample settings # config.deploy.docker_repository = "mycompany/myrepo" # config.deploy.docker_repository = "https://docker.mycompany.com/myrepo" attr_accessor :docker_repository # @return [String] the path (relative to Phasefile) to the version lockfile (default "VERSION") # @example Sample settings # config.deploy.version_lockfile = "lib/myproj/version.lock" attr_accessor :version_lockfile # @return [String] the cloud storage bucket ("directory") for storing compiled assets # @example Sample settings # config.deploy.docker_repository = "static-assets" attr_accessor :asset_bucket # @return [String] any options or switches to be passed to the Docker daemon at runtime # @example Sample settings # config.deploy.docker_run_flags = "-v /dir:/dir -e VAR=value --env-file=.environment" attr_accessor :docker_run_flags def initialize @environments = [] @version_lockfile = "VERSION" end # Adds a new deployment environment. # @return [Environment] the new environment def environment(name, options = {}) @environments << Environment.new(name, options) end end class Environment attr_accessor :name, :perform_build, :server_filters alias_method :perform_build?, :perform_build def initialize(name, options = {}) @name = name @perform_build = options.fetch(:build, true) @server_filters = options.fetch(:servers, {}) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phase-1.0.1 | lib/phase/config/deploy.rb |