96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# File 'ext/envkeeper/envkeeper.c', line 96
VALUE rb_env_create_io_methods_m(int argc, VALUE *argv, VALUE self) {
VALUE secrets, join_argv[1], line, regex;
rb_scan_args(argc, argv, "1", &secrets);
join_argv[0] = rb_str_new_cstr(")|(");
line = rb_funcallv(rb_ary_push(secrets, rb_str_new_cstr(env_secret_key)), rb_intern("join"), 1, join_argv);
regex = rb_reg_new_str(rb_sprintf("(%" PRIsVALUE ")", line), 1);
rb_gv_set("$env_io_secrets", regex);
set_env_variable(env_secret_key, line);
rb_define_module_function(rb_mEnvkeeper, "gsub_args", rb_env_sub_m, -1);
return Qnil;
}
|