class RequirejsIntegrator::CommandTemplate
Public Class Methods
new(config:, output: $stdout, executor: ::Kernel)
click to toggle source
# File lib/requirejs_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/requirejs_integrator/command_template.rb, line 28 def run raise NotImplementedError end
Private Instance Methods
config_file_path()
click to toggle source
# File lib/requirejs_integrator/command_template.rb, line 34 def config_file_path File.join( Rake.application.original_dir, @config.fetch("project_ui_dir"), @config.fetch("project_config_dir"), @config.fetch("project_requirejs_config_file") ) end
default_config_file_path()
click to toggle source
# File lib/requirejs_integrator/command_template.rb, line 43 def default_config_file_path File.join( Gem.datadir("requirejs_integrator"), "build.js.default" ) end