Module: Envkeeper
- Defined in:
- lib/envkeeper.rb,
lib/envkeeper/git.rb,
lib/envkeeper/auth.rb,
lib/envkeeper/http.rb,
lib/envkeeper/version.rb,
ext/envkeeper/envkeeper.c
Defined Under Namespace
Modules: Auth Classes: Error, Git, HTTP
Constant Summary collapse
- VERSION =
'0.1.2'
Class Method Summary collapse
Class Method Details
.call ⇒ Object
12 13 14 |
# File 'lib/envkeeper.rb', line 12 def call Envkeeper::Auth.login! end |
.create_io_methods(*args) ⇒ Object
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; } |
.git_remote_list ⇒ Object
4 5 6 |
# File 'lib/envkeeper/git.rb', line 4 def self.git_remote_list @git_remote_list ||= Git.new.remote_list end |