123456789_123456789_123456789_123456789_123456789_

Class: RubyInstaller::Build::Task

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Openstruct
Instance Chain:
self, Utils, Rake::DSL, Openstruct
Inherits: RubyInstaller::Build::Openstruct
Defined in: lib/ruby_installer/build/task.rb

Constant Summary

Utils - Included

GEM_ROOT, WINDOWS_CMD_SHEBANG

Class Method Summary

Instance Method Summary

Utils - Included

#eval_file,
#file

Extend rake’s file task to be defined only once and to check the expected file is indeed generated.

#msys_sh,
#ovl_expand_file

Returns the absolute path of rel_file within the current directory or, if it doesn’t exist, from the gem root directory.

#ovl_glob

Scan the current and the gem root directory for files matching rel_pattern.

#ovl_read_file

Read rel_file from the current directory or, if it doesn’t exist, from the gem root directory.

#q_inno

Quote a string according to the rules of Inno-Setup.

#rubyinstaller_build_gem_files

Return the gem files of “rubyinstaller-build”.

#task

Extend rake’s task definition to be defined only once, even if called several times.

#with_env, #with_sandbox_ruby, #task_once

Openstruct - Inherited

Constructor Details

.new(thisdir:, **hash) ⇒ Task

[ GitHub ]

  
# 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