blastwave_provider.patch

Cody Herriges, 01/20/2010 10:34 pm

Download (1.2 kB)

/var/ruby/1.8/gem_home/gems/puppet-0.25.3/lib/puppet/provider/package/blastwave.rb Tue Jan 19 23:54:45 2010
10 10

  
11 11
    commands :pkgget => pkgget
12 12

  
13
    def pkgget_with_cat(*args)
14
        withenv(:PAGER => "/usr/bin/cat") { pkgget(*args) }
13
    def self.pkgget_with_cat(*args)
14
        Puppet::Util::Execution.withenv(:PAGER => "/usr/bin/cat") { pkgget(*args) }
15 15
    end
16 16

  
17 17
    def self.extended(mod)
......
89 89
    end
90 90

  
91 91
    def install
92
        pkgget_with_cat "-f", :install, @resource[:name]
92
        self.class.pkgget_with_cat "-f", :install, @resource[:name]
93 93
    end
94 94

  
95 95
    # Retrieve the version from the current package file.
......
108 108

  
109 109
    # Remove the old package, and install the new one
110 110
    def update
111
        pkgget_with_cat "-f", :upgrade, @resource[:name]
111
        self.class.pkgget_with_cat "-f", :upgrade, @resource[:name]
112 112
    end
113 113

  
114 114
    def uninstall
115
        pkgget_with_cat "-f", :remove, @resource[:name]
115
        self.class.pkgget_with_cat "-f", :remove, @resource[:name]
116 116
    end
117 117
end
118 118