Class: RubyInstaller::Build::Task

Inherits:
Openstruct show all
Includes:
Rake::DSL, Utils
Defined in:
lib/ruby_installer/build/task.rb

Constant Summary

Constants included from Utils

Utils::GEM_ROOT, Utils::WINDOWS_CMD_SHEBANG

Instance Method Summary collapse

Methods included from Utils

#eval_file, #file, #msys_sh, #ovl_expand_file, #ovl_glob, #ovl_read_file, #q_inno, #rubyinstaller_build_gem_files, #task, #with_env, #with_sandbox_ruby

Methods inherited from Openstruct

#method_missing

Constructor Details

#initialize(thisdir:, **hash) ⇒ Task

Returns a new instance of Task.



10
11
12
13
14
15
16
17
# File 'lib/ruby_installer/build/task.rb', line 10

def initialize(thisdir: , **hash)
  super(hash)
  self.thisdir = thisdir

  ovl_glob(File.join(thisdir, "[0-9][0-9]-*.rake")).sort.each do |taskfile|
    eval_file(ovl_expand_file(taskfile))
  end
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RubyInstaller::Build::Openstruct