Class: PopulateEnv::Heroku::AttributeCompilation
- Inherits:
-
Object
- Object
- PopulateEnv::Heroku::AttributeCompilation
- Defined in:
- lib/populate_env/heroku/attribute_compilation.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#remote_config ⇒ Object
readonly
Returns the value of attribute remote_config.
Instance Method Summary collapse
-
#initialize(definition, options, remote_config) ⇒ AttributeCompilation
constructor
A new instance of AttributeCompilation.
- #perform ⇒ Object
Constructor Details
#initialize(definition, options, remote_config) ⇒ AttributeCompilation
Returns a new instance of AttributeCompilation.
6 7 8 |
# File 'lib/populate_env/heroku/attribute_compilation.rb', line 6 def initialize(definition, , remote_config) @definition, @options, @remote_config = definition, , remote_config end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
4 5 6 |
# File 'lib/populate_env/heroku/attribute_compilation.rb', line 4 def definition @definition end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/populate_env/heroku/attribute_compilation.rb', line 4 def @options end |
#remote_config ⇒ Object (readonly)
Returns the value of attribute remote_config.
4 5 6 |
# File 'lib/populate_env/heroku/attribute_compilation.rb', line 4 def remote_config @remote_config end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/populate_env/heroku/attribute_compilation.rb', line 10 def perform .output.print "#{definition.name}:" attempt_to_populate_value unless @skip_log .output.puts " #{@status_for_output || @value.inspect}" .output.puts " => #{@explanation}" .output.puts end Attribute.new(definition, @value) unless @skip end |