Sha256: f0d5d7a2c48198464b3b941aa38ebc725354d46eddae9ba285d1b47af9d53c16

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

require_relative '../rapid-vaults'

# provides an application programming interface to interact with rapid vaults
class RapidVaults::API
  # lightweight api
  def self.main(settings)
    # parse settings for api and run RapidVaults with specified settings
    RapidVaults.new.main(parse(settings))
  end

  # parse api options
  def self.parse(settings)
    # establish settings for api and denote using api
    settings[:ui] = :api
    settings[:algorithm] = :openssl unless settings.key?(:algorithm)
    settings
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapid-vaults-1.1.0 lib/rapid-vaults/api.rb