Class: HarvestThings::Application

Inherits:
Object
  • Object
show all
Includes:
Sync
Defined in:
lib/harvestthings/application.rb

Instance Method Summary collapse

Methods included from Sync

#add_client_to_harvest, #add_project_to_harvest, #add_task_to_harvest, #assign_task_assignment, #things_projects_to_harvest, #things_tasks_to_harvest

Constructor Details

#initializeBoolean

initialize - defines a harvest and things object



19
20
21
22
23
# File 'lib/harvestthings/application.rb', line 19

def initialize
  @harvest = Harvest.new
  @things = Things.new
  init_sync if config_checks?
end

Instance Method Details

#init_syncString

init_sync - kicks off the syncing

Returns:

  • (String)


28
29
30
31
32
# File 'lib/harvestthings/application.rb', line 28

def init_sync
  print "starting sync"
  things_projects_to_harvest
  puts ".finished. ciao!"
end