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


14
15
16
# File 'lib/hiera/backend/eyaml/subcommands/createkeys.rb', line 14

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

.executeObject


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

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

.optionsObject


10
11
12
# File 'lib/hiera/backend/eyaml/subcommands/createkeys.rb', line 10

def self.options 
  []
end