Module: PathSetup

Included in:
FlatironScheduler
Defined in:
lib/path_setup.rb

Instance Method Summary collapse

Instance Method Details

#read_pathObject



6
7
8
# File 'lib/path_setup.rb', line 6

def read_path
  File.read("/Users/#{ENV['USER']}/.fis_scheduler")
end

#setup_path(path) ⇒ Object



2
3
4
# File 'lib/path_setup.rb', line 2

def setup_path(path)
  File.open("/Users/#{ENV['USER']}/.fis_scheduler", "w+"){ |f| f.write(path) }
end