Class: RsyncConfig::SecretsFile
- Inherits:
-
Object
- Object
- RsyncConfig::SecretsFile
- Includes:
- ConfigEntry
- Defined in:
- lib/rsync_config/secrets_file.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(output, **options) ⇒ SecretsFile
constructor
A new instance of SecretsFile.
- #to_s ⇒ Object
Constructor Details
#initialize(output, **options) ⇒ SecretsFile
Returns a new instance of SecretsFile.
8 9 10 11 12 13 |
# File 'lib/rsync_config/secrets_file.rb', line 8 def initialize(output, **) raise "output cannot be nil or empty" if output.nil? || output.empty? self.output = output self.value = [:value] if [:value] end |
Instance Attribute Details
#output ⇒ Object
Returns the value of attribute output.
6 7 8 |
# File 'lib/rsync_config/secrets_file.rb', line 6 def output @output end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/rsync_config/secrets_file.rb', line 6 def value @value end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/rsync_config/secrets_file.rb', line 19 def to_s value end |