Sha256: 6e9c4cbda5c1c78569e9eb05f3cf6db4a50862f75223d74ebc81c6981312f721
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
# encoding: utf-8 # Copyright (C) 2015,2016 Szymon Kopciewski # # This file is part of CompassIntegrator. # # This program 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. # # This program 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 this program. If not, see <http://www.gnu.org/licenses/>. module CompassIntegrator class CommandTemplate def initialize(config:, output: $stdout, executor: ::Kernel) @config = config @output = output @executor = executor end def run raise NotImplementedError end private def config_file_path File.join( Rake.application.original_dir, @config.fetch("project_ui_dir"), @config.fetch("project_config_dir"), @config.fetch("project_compass_config_file") ) end def default_config_file_path File.join( Gem.datadir("compass_integrator"), "compass_config.rb.default" ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compass_integrator-3.0.2 | lib/compass_integrator/command_template.rb |
compass_integrator-3.0.1 | lib/compass_integrator/command_template.rb |