Class: LokaliseRails::TaskDefinition::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/lokalise_rails/task_definition/base.rb

Direct Known Subclasses

Importer

Class Method Summary collapse

Class Method Details

.check_required_optsObject



10
11
12
13
14
15
# File 'lib/lokalise_rails/task_definition/base.rb', line 10

def check_required_opts
  return [false, 'Project ID is not set! Aborting...'] unless LokaliseRails.project_id
  return [false, 'Lokalise API token is not set! Aborting...'] unless LokaliseRails.api_token

  [true, '']
end