class Findrr::Command

Public Instance Methods

collect(path) click to toggle source
# File lib/findrr/command.rb, line 14
    def collect(path)
      Config.new.save(path)
      begin
        Database.new.collect(path)
      rescue => e
        $stderr.puts <<-END_OF_MESSAGE
#{e.class}: #{e.message}
Hint: table schema might be changed. Please try `findrr destroy` command.
        END_OF_MESSAGE
      end
    end
destroy() click to toggle source
# File lib/findrr/command.rb, line 39
def destroy
  Database.new.destroy
end
version() click to toggle source
# File lib/findrr/command.rb, line 9
def version
  puts VERSION
end