Method: RunLoop::DotDir.directory

Defined in:
lib/run_loop/dot_dir.rb

.directoryObject



4
5
6
7
8
9
10
11
# File 'lib/run_loop/dot_dir.rb', line 4

def self.directory
  home = RunLoop::Environment.user_home_directory
  dir = File.join(home, ".run-loop")
  if !File.exist?(dir)
    FileUtils.mkdir_p(dir)
  end
  dir
end