class BourbonIntegrator::CommandTemplate
Public Class Methods
new(config:, output: $stdout, executor: ::Kernel)
click to toggle source
# File lib/bourbon_integrator/command_template.rb, line 22 def initialize(config:, output: $stdout, executor: ::Kernel) @config = config @output = output @executor = executor end
Public Instance Methods
run()
click to toggle source
# File lib/bourbon_integrator/command_template.rb, line 28 def run raise NotImplementedError end
Private Instance Methods
default_vars_file_path()
click to toggle source
# File lib/bourbon_integrator/command_template.rb, line 65 def default_vars_file_path File.join( Gem.datadir("bourbon_integrator"), "struct_vars.scss.mustache" ) end
sass_path()
click to toggle source
# File lib/bourbon_integrator/command_template.rb, line 34 def sass_path File.join( Rake.application.original_dir, @config.fetch("project_ui_dir"), @config.fetch("project_sass_dir") ) end
sass_style()
click to toggle source
# File lib/bourbon_integrator/command_template.rb, line 42 def sass_style @config.fetch("project_assets_verbose") ? "nested" : "compressed" end
sourcemap()
click to toggle source
# File lib/bourbon_integrator/command_template.rb, line 46 def sourcemap "--sourcemap=none" unless @config.fetch("project_assets_verbose") end
stylesheets_path()
click to toggle source
# File lib/bourbon_integrator/command_template.rb, line 50 def stylesheets_path File.join( @config.fetch("project_ui_dir"), @config.fetch("project_public_dir"), @config.fetch("project_css_dir") ) end
vars_file_path()
click to toggle source
# File lib/bourbon_integrator/command_template.rb, line 58 def vars_file_path File.join( sass_path, "_struct_vars.scss" ) end