module Tomago::ProjectHelpers
Attributes
project_name[R]
Public Instance Methods
ensure_tomago_dir()
click to toggle source
# File lib/tomago/project_helpers.rb, line 8 def ensure_tomago_dir return if Dir.exists?("#{ENV["HOME"]}/.tomago/") Dir.mkdir("#{ENV["HOME"]}/.tomago/") end
launch_editor()
click to toggle source
# File lib/tomago/project_helpers.rb, line 12 def launch_editor Kernel.system("$EDITOR #{project_file}") end
project_file()
click to toggle source
# File lib/tomago/project_helpers.rb, line 4 def project_file "#{ENV["HOME"]}/.tomago/#{project_name}.yml" end