Class: CloudEncryptedSync::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_encrypted_sync/configuration.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cached_argvObject (readonly)

Returns the value of attribute cached_argv.



6
7
8
# File 'lib/cloud_encrypted_sync/configuration.rb', line 6

def cached_argv
  @cached_argv
end

.option_parserObject (readonly)

Returns the value of attribute option_parser.



6
7
8
# File 'lib/cloud_encrypted_sync/configuration.rb', line 6

def option_parser
  @option_parser
end

Class Method Details

.data_folder_pathObject



12
13
14
# File 'lib/cloud_encrypted_sync/configuration.rb', line 12

def data_folder_path
  command_line_options[:data_dir]
end

.settingsObject



8
9
10
# File 'lib/cloud_encrypted_sync/configuration.rb', line 8

def settings
  @settings ||= load
end

.signatureObject



16
17
18
# File 'lib/cloud_encrypted_sync/configuration.rb', line 16

def signature
  Cryptographer.hash_data(cached_argv.to_s + config_file_settings.to_s)
end