Class: EbDeployer::ConfigLoader::EvalBinding
- Inherits:
-
Object
- Object
- EbDeployer::ConfigLoader::EvalBinding
- Defined in:
- lib/eb_deployer/config_loader.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#package_digest ⇒ Object
readonly
Returns the value of attribute package_digest.
Instance Method Summary collapse
-
#initialize(package_digest, env) ⇒ EvalBinding
constructor
A new instance of EvalBinding.
- #random_hash ⇒ Object
Constructor Details
#initialize(package_digest, env) ⇒ EvalBinding
Returns a new instance of EvalBinding.
11 12 13 14 |
# File 'lib/eb_deployer/config_loader.rb', line 11 def initialize(package_digest, env) @package_digest = package_digest @environment = env end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
10 11 12 |
# File 'lib/eb_deployer/config_loader.rb', line 10 def environment @environment end |
#package_digest ⇒ Object (readonly)
Returns the value of attribute package_digest.
10 11 12 |
# File 'lib/eb_deployer/config_loader.rb', line 10 def package_digest @package_digest end |
Instance Method Details
#random_hash ⇒ Object
16 17 18 |
# File 'lib/eb_deployer/config_loader.rb', line 16 def random_hash SecureRandom.hex[0..9] end |