acceptance/lib/puppet/acceptance/rpm_util.rb
# Utilities for creating a basic rpm package and using it in tests
Utilities for creating a basic rpm package and using it in tests
Utilities for creating a basic rpm package and using it in tests
def clean_rpm(agent, o={})
        o = @@defaults.merge(o)
        on agent, "rm -rf #{o[:repo]}", :acceptable_exit_codes => (0..255)
        on agent, "yum remove -y #{o[:pkg]}", :acceptable_exit_codes => (0..255)
        on agent, "rm -f /etc/yum.repos.d/#{o[:publisher]}.repo", :acceptable_exit_codes => (0..255)
      end
def clean_rpm ( agent , o = { } ) o = @@defaults . merge ( o ) on agent , "rm -rf #{o[:repo]}" , :acceptable_exit_codes => ( 0 .. 255 ) on agent , "yum remove -y #{o[:pkg]}" , :acceptable_exit_codes => ( 0 .. 255 ) on agent , "rm -f /etc/yum.repos.d/#{o[:publisher]}.repo" , :acceptable_exit_codes => ( 0 .. 255 ) end
Utilities for creating a basic rpm package and using it in tests
Utilities for creating a basic rpm package and using it in tests
agent
<not_specific>
o
<not_specific>