Sha256: d21b51c3b8060af86e26c9d1119e1171c885991d68afc70766f90c2a30547bfd
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
# resources.rb # Copyright (C) RĂ©mi Even 2016 # # This file is part of Xolti. # # Xolti is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Xolti is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Xolti. If not, see <http://www.gnu.org/licenses/>. module Resources # If xolti is not installed as a gem, assume that pwd is the root of the project # Needed to fix travis integration. Resources_dir = Gem::Specification.all_names.select { |name| name.match(/xolti/) }.length >= 1 ? File.join(Gem::Specification.find_by_name("xolti").gem_dir, "resources") : File.join(Dir.pwd, "resources") def Resources.get_template_path(license) File.join(Resources_dir, "headers", license) end def Resources.get_full_license_path(license) File.join(Resources_dir, "licenses", license) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xolti-0.1.1 | lib/resources.rb |
xolti-0.1.0 | lib/resources.rb |