mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: add support for gem source in plugins
This commit is contained in:
parent
2c04f615f4
commit
95cbcc198e
1 changed files with 4 additions and 1 deletions
|
@ -204,7 +204,10 @@ class Plugin::Instance
|
||||||
spec_path = gems_path + "/specifications"
|
spec_path = gems_path + "/specifications"
|
||||||
spec_file = spec_path + "/#{name}-#{version}.gemspec"
|
spec_file = spec_path + "/#{name}-#{version}.gemspec"
|
||||||
unless File.exists? spec_file
|
unless File.exists? spec_file
|
||||||
command = "gem install #{name} -v #{version} -i #{gems_path} --no-rdoc --no-ri"
|
command = "gem install #{name} -v #{version} -i #{gems_path} --no-document"
|
||||||
|
if opts[:source]
|
||||||
|
command << " --source #{opts[:source]}"
|
||||||
|
end
|
||||||
puts command
|
puts command
|
||||||
puts `#{command}`
|
puts `#{command}`
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue