⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
ruby
/
gems
/
3.0.0
/
gems
/
rbs-1.0.4
/
sig
/
View File Name :
vendorer.rbs
module RBS # Copies RBS files loaded through `loader` under `vendor_dir`. # # Core libraries and library RBS files will be copied. # # loader = RBS::EnvironmentLoader.new() # # loader.add(library: set) # Libraries will be copied. # loader.add(library: "minitest", version: "1.2.3") # # loader.add(path: Pathname("sig")) # Dirs will be ignored. # # vendorer = RBS::Vendorer.new(vendor_dir: Pathname("vendor/rbs"), loader: loader) # vendorer.clearn! # vendorer.copy! # # The result will be: # vendor/rbs/core => Will include core RBSs # vendor/rbs/set-0 => Will include `set` library RBSs. # vendor/rbs/minitest-1.2.3 => Will include `minitest` library RBSs. # # The vendorerd RBSs will be loaded through :dir source. # # loader = RBS::EnvironmentLoader.new(core_root: nil, repository: RBS::Repository.new(no_stdlib: true)) # loader.add(path: Pathname("vendor/rbs")) # loader.add(path: Pathname("sig")) # class Vendorer attr_reader vendor_dir: Pathname attr_reader loader: EnvironmentLoader def initialize: (vendor_dir: Pathname, loader: EnvironmentLoader) -> void # Copy RBS files into `vendor_dir`. # Ensures the `vendor_dir` exists. def copy!: () -> void # Deletes `vendor_dir` and its content if exists. # def clean!: () -> void def ensure_dir: [A] () { () -> A } -> A end end