Class: TLSmap::CLI
Overview
Offline version of App
Defined Under Namespace
Classes: Extended
Constant Summary collapse
- INTEGRITY =
sha2-256
'5c8f1ae39611cfb157778152a86cb1b8af669fe086d9d9f37d13a795d402cf97'
Constants inherited from App
App::GNUTLS_URL, App::IANA_URL, App::NSS_URL, App::OPENSSL_URL, App::OPENSSL_URL2
Instance Attribute Summary
Attributes inherited from App
Instance Method Summary collapse
-
#initialize(force = false) ⇒ CLI
constructor
Load and parse data from marshalized hash (
data/mapping.marshal). - #update ⇒ Object
Methods inherited from App
#bulk_search, #export, #search, search
Constructor Details
#initialize(force = false) ⇒ CLI
Load and parse data from marshalized hash (data/mapping.marshal).
It must match the integrity check for security purpose.
16 17 18 19 20 21 22 |
# File 'lib/tls_map/cli/cli.rb', line 16 def initialize(force = false) @storage_location = 'data/' @database_path = absolute_db_path('mapping.marshal') database_exists? @tls_map = [] parse(force) end |
Instance Method Details
#update ⇒ Object
50 51 52 53 |
# File 'lib/tls_map/cli/cli.rb', line 50 def update tm = TLSmap::App.new tm.export(@database_path, :marshal) end |