Sha256: ec8d2bb9007283d0120515e15da640be701461cb53a69aaac3e22242107b7783

Contents?: true

Size: 574 Bytes

Versions: 28

Compression:

Stored size: 574 Bytes

Contents

module Lederhosen
  class CLI

    desc 'make_udb', 'format database for usearch'

    method_option :input,       :type => :string,  :required => true
    method_option :output,      :type => :string,  :required => true

    def make_udb
      input       = options[:input]
      output      = options[:output]
      word_length = options[:word_length]

      ohai "making udb w/ #{input}, saving as #{output}."

      cmd = ['usearch',
             "-makeudb_usearch #{input}",
             "-output #{output}"]

      cmd = cmd.join(' ')

      run cmd
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
lederhosen-1.8.2 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.8.1 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.8.0 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.7.0 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.6.2 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.6.1 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.6.0 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.4.0 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.10 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.8 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.7 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.6 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.5 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.4 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.3 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.2 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.1 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.3.0 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.2.5 lib/lederhosen/tasks/make_udb.rb
lederhosen-1.2.4 lib/lederhosen/tasks/make_udb.rb