We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35e995 commit 778ebaeCopy full SHA for 778ebae
lib/puppet/provider/rbenvgem/default.rb
@@ -2,7 +2,11 @@
2
desc 'Maintains gems inside an RBenv setup'
3
4
def install
5
- args = ['install', '--no-rdoc', '--no-ri']
+ args = if version[0].to_i == 1
6
+ ['install', '--no-rdoc', '--no-ri']
7
+ else
8
+ ['install', '--no-document']
9
+ end
10
args << "-v#{resource[:ensure]}" unless resource[:ensure].is_a?(Symbol)
11
args << ['--source', "'#{resource[:source]}'"] if resource[:source] != ''
12
args << gem_name
@@ -22,6 +26,10 @@ def current
22
26
list
23
27
end
24
28
29
+ def version
30
+ gem '-v'
31
32
+
25
33
private
34
35
def gem_name
0 commit comments