class TogglIntegrator::FileUtil
Attributes
project_path[R]
Public Class Methods
join(path)
click to toggle source
# File lib/toggl_integrator/file_util.rb, line 16 def self.join(path) File.join(instance.project_path + path) end
new()
click to toggle source
# File lib/toggl_integrator/file_util.rb, line 12 def initialize @project_path = "#{ENV['PROJECT_PATH']}/.toggl_integrator/" end
new_file_if_not_exists(name)
click to toggle source
# File lib/toggl_integrator/file_util.rb, line 20 def self.new_file_if_not_exists(name) FileUtils.mkdir_p File.dirname join(name) end