Class: RsyncConfig::SecretsFile

Inherits:
Object
  • Object
show all
Includes:
ConfigEntry
Defined in:
lib/rsync_config/secrets_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, **options)
  raise "output cannot be nil or empty" if output.nil? || output.empty?

  self.output = output
  self.value = options[:value] if options[:value]
end

Instance Attribute Details

#outputObject

Returns the value of attribute output.



6
7
8
# File 'lib/rsync_config/secrets_file.rb', line 6

def output
  @output
end

#valueObject

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_sObject



19
20
21
# File 'lib/rsync_config/secrets_file.rb', line 19

def to_s
  value
end