]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - modules/base_installation/lib/puppet/provider/package/pip2.rb
Add monitoring
[perso/Immae/Projets/Puppet.git] / modules / base_installation / lib / puppet / provider / package / pip2.rb
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