Class: Hiera::Backend::Eyaml::Subcommands::Createkeys

Inherits:
Hiera::Backend::Eyaml::Subcommand show all
Defined in:
lib/hiera/backend/eyaml/subcommands/createkeys.rb

Class Method Summary collapse

Methods inherited from Hiera::Backend::Eyaml::Subcommand

all_options, attach_option, find, hidden?, load_config_file, parse, prettyname, validate

Class Method Details

.descriptionObject



12
13
14
# File 'lib/hiera/backend/eyaml/subcommands/createkeys.rb', line 12

def self.description
  'create a set of keys with which to encrypt/decrypt eyaml data'
end

.executeObject



16
17
18
19
20
# File 'lib/hiera/backend/eyaml/subcommands/createkeys.rb', line 16

def self.execute
  encryptor = Encryptor.find Eyaml.default_encryption_scheme
  encryptor.create_keys
  nil
end

.optionsObject



8
9
10
# File 'lib/hiera/backend/eyaml/subcommands/createkeys.rb', line 8

def self.options
  []
end