mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 19:54:13 +08:00
Support locally change source bundler
for Ruby
This commit is contained in:
parent
688ec037aa
commit
ef03f3309b
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user