Skip to content

Instantly share code, notes, and snippets.

View ifrepo.pp
if manage_repo
yumrepo {'repo':
enabled => 1,
gpgcheck => 1,
}
end
package { 'package':
ensure => latest,
if Yumrepo['repo'] was defined:
View magic.rb
###level 1
def rspec_test
validate(TestPage, "STRING")
end
###level 2
def validate(page_object, *live_url)
return check_page_file_class(page_object, *live_url)
end