Sha256: 360ae64d1421ebf0db86f28aa3e1015399b2d62d478a702eca0790460773b176

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

require "thor/util"
module Gator
  class Util
    # Returns the root where thor files are located, dependending on the OS.
    #
    def self.gator_root
      File.join(Thor::Util.user_home, ".gator").gsub(/\\/, '/')
    end

    def self.project_template_root
      File.join(gator_root, "templates", "projects")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gator-0.0.7.pre lib/gator/util.rb
gator-0.0.6.pre lib/gator/util.rb