Module: Cryptoform
- Defined in:
- lib/cryptoform.rb,
lib/cryptoform/version.rb
Defined Under Namespace
Classes: ConfigGenerator, ConfigValidationError, Error, Server, StateMissingError, UnknownStateError
Constant Summary
collapse
- VERSION =
"0.5.1"
Class Method Summary
collapse
Class Method Details
.load_cryptofile!(cryptofile) ⇒ Object
27
28
29
|
# File 'lib/cryptoform.rb', line 27
def load_cryptofile!(cryptofile)
Cryptoform::Config::Builder.new(cryptofile).tap(&:validate!)
end
|
.run!(cryptofile) ⇒ Object
22
23
24
25
|
# File 'lib/cryptoform.rb', line 22
def run!(cryptofile)
config = load_cryptofile!(cryptofile)
Cryptoform::Server.run!(config.config)
end
|