Class: Skylight::Util::Deploy::DefaultDeploy Private
- Inherits:
-
EmptyDeploy
- Object
- EmptyDeploy
- Skylight::Util::Deploy::DefaultDeploy
- Includes:
- Logging
- Defined in:
- lib/skylight/util/deploy.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from EmptyDeploy
Instance Method Summary collapse
- #description ⇒ Object private
- #git_sha ⇒ Object private
- #id ⇒ Object private
-
#initialize ⇒ DefaultDeploy
constructor
private
A new instance of DefaultDeploy.
Methods included from Logging
#config_for_logging, #debug, #error, #fmt, #info, #log, #log_context, #raise_on_error?, #t, #trace, #trace?, #warn
Methods inherited from EmptyDeploy
Constructor Details
#initialize ⇒ DefaultDeploy
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DefaultDeploy.
49 50 51 52 |
# File 'lib/skylight/util/deploy.rb', line 49 def initialize(*) super warn "The configured deploy will be ignored as an id or git_sha must be provided." if description && !id end |
Instance Method Details
#description ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
62 63 64 |
# File 'lib/skylight/util/deploy.rb', line 62 def description config.get(:"deploy.description") end |
#git_sha ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
58 59 60 |
# File 'lib/skylight/util/deploy.rb', line 58 def git_sha config.get(:"deploy.git_sha") end |
#id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
54 55 56 |
# File 'lib/skylight/util/deploy.rb', line 54 def id config.get(:"deploy.id") || git_sha end |