Class: Tempo::Controllers::Records

Inherits:
Base
  • Object
show all
Defined in:
lib/tempo/controllers/records_controller.rb

Class Method Summary collapse

Methods inherited from Base

filter_projects_by_title, fuzzy_match, reassemble_the

Class Method Details

.initialize_from_records(options, args) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/tempo/controllers/records_controller.rb', line 8

def initialize_from_records options, args
  if File.exists?( File.join( ENV['HOME'], 'tempo' ))

    Tempo::Controllers::Projects.load

  else
    FileRecord::Directory.create_new
  end
end