Class: BB8::SetEncryptionKeys
- Inherits:
-
Object
- Object
- BB8::SetEncryptionKeys
- Defined in:
- lib/bb8/set_encryption_keys.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
2 3 4 |
# File 'lib/bb8/set_encryption_keys.rb', line 2 def self.call new.call end |
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 |
# File 'lib/bb8/set_encryption_keys.rb', line 6 def call return if variables['BB8_SECRET_KEY'] `voltos set BB8_SECRET_KEY=#{SecureRandom.hex(16)}` `voltos set BB8_SECRET_IV=#{SecureRandom.hex(8)}` end |