mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-25 17:56:27 +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;
|
||||
}
|
||||
|
||||
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_say_thanks (&source);
|
||||
|
|
Loading…
Reference in New Issue
Block a user