lib/tls_map/cli.rb in tls-map-1.1.0 vs lib/tls_map/cli.rb in tls-map-1.2.0

- old
+ new

@@ -7,11 +7,11 @@ module TLSmap # TLS mapping class CLI < App INTEGRITY = '42e44f89550365da2bc8d33d87f88b65d85d6474e90f9edb65e0ea6c78f61a53' # sha2-256 - # Load and parse data from marshalized hash (+data/mapping.marshal+). + # Load and parse data from marshalized hash (`data/mapping.marshal`). # It must match the integrity check for security purpose. # @param force [Boolean] Force parsing even if intigrity check failed (DANGEROUS, # may result in command execution vulnerability) def initialize(force = false) # rubocop:disable Lint/MissingSuper @storage_location = 'data/' @@ -29,10 +29,10 @@ install_dir = pn.dirname.parent.parent.to_s + Pathname::SEPARATOR_LIST install_dir + @storage_location + @database_name end # Check if the password database exists - # @return [Boolean] +true+ if the file exists + # @return [Boolean] `true` if the file exists def database_exists? exists = File.file?(@database_path) raise "Database does not exist: #{@database_path}" unless exists exists