aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation/lib/puppet/provider/package/pip2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base_installation/lib/puppet/provider/package/pip2.rb')
-rw-r--r--modules/base_installation/lib/puppet/provider/package/pip2.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/base_installation/lib/puppet/provider/package/pip2.rb b/modules/base_installation/lib/puppet/provider/package/pip2.rb
new file mode 100644
index 0000000..27cc0c4
--- /dev/null
+++ b/modules/base_installation/lib/puppet/provider/package/pip2.rb
@@ -0,0 +1,17 @@
1require 'puppet/provider/package/pip'
2
3Puppet::Type.type(:package).provide :pip2,
4 :parent => :pip do
5
6 desc "Python packages via `pip2`.
7
8 This provider supports the `install_options` attribute, which allows command-line flags to be passed to pip2.
9 These options should be specified as a string (e.g. '--flag'), a hash (e.g. {'--flag' => 'value'}),
10 or an array where each element is either a string or a hash."
11
12 has_feature :installable, :uninstallable, :upgradeable, :versionable, :install_options
13
14 def self.cmd
15 ["pip2"]
16 end
17end