]>
Commit | Line | Data |
---|---|---|
d8f933bd IB |
1 | require 'puppet/provider/package/pip' |
2 | ||
3 | Puppet::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 | |
17 | end |