mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-03 23:17:49 -05:00
* Add GBIF cient * Add lookup * Add autocomplete for GBIF lookup * Add extra detail to scientific names * Autocomplete * Add routes * Rmeove mapping * Add autocomplete * Update GBIF data on save * db/schema * Style * Extract service * Add concern * Add concern * Save photos * Initial coverage * Coverage * Add coverage * Shut up, codeclimate * Shut up, codeclimate * Unused * Shut up, codeclimate * Apply suggestions from code review * Remove localhost * Fix rubocop * Fix rubocop * Add UI links * Add rake * Indent * Update Gemfile.lock * Update lib/tasks/gbif.rake * Update app/views/crops/_scientific_names.html.haml * Rubocop * Expand edit photo form * Fix error * Add model validations * Skip photos without backlinks * Fix tests * Add photo words * Allow blank * Rubocop and handle invalid legacy data * Apply suggestions from code review * Update lib/tasks/gbif.rake
11 lines
196 B
Ruby
11 lines
196 B
Ruby
# frozen_string_literal: true
|
|
|
|
namespace :gbif do
|
|
desc "Retrieve crop info from GBIF"
|
|
|
|
task import: :environment do
|
|
Rails.logger = Logger.new(STDOUT)
|
|
GbifService.new.import!
|
|
end
|
|
end
|