class Leeloo::KeystoreFactory
Public Class Methods
create(keystore)
click to toggle source
# File lib/leeloo/keystore.rb, line 9 def self.create keystore keystore_created = nil case keystore["cypher"] when "gpg" keystore_created = GpgPrivateLocalFileSystemKeystore.new keystore["name"], keystore["path"] else keystore_created = PrivateLocalFileSystemKeystore.new keystore["name"], keystore["path"] end case keystore["vc"] when "git" GitKeystoreDecorator.new keystore_created else keystore_created end end