Support locally change source bundler for Ruby

This commit is contained in:
Aoran Zeng 2024-06-05 13:07:53 +08:00
parent 688ec037aa
commit ef03f3309b

View File

@ -70,7 +70,13 @@ pl_ruby_setsrc (char *option)
return; return;
} }
cmd = xy_2strjoin ("bundle config --global 'mirror.https://rubygems.org' ", source.url); char *where = "--global";
if (Cli_Optiion_Locally==1)
{
where = "--local";
}
cmd = xy_strjoin (4, "bundle config ", where, " 'mirror.https://rubygems.org' ", source.url);
chsrc_run (cmd); chsrc_run (cmd);
chsrc_say_thanks (&source); chsrc_say_thanks (&source);