Class: Skylight::Util::Deploy::DefaultDeploy Private

Inherits:
EmptyDeploy show all
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

#config, #timestamp

Instance Method Summary collapse

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

#to_query_hash

Constructor Details

#initializeDefaultDeploy

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

#descriptionObject

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_shaObject

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

#idObject

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