Sha256: 1a632459d0c4abad09322a6ffc3447de483b485344ecb46fa1f9e4bc98f2d60b
Contents?: true
Size: 1.92 KB
Versions: 3
Compression:
Stored size: 1.92 KB
Contents
if defined?(ChefSpec) ChefSpec.define_matcher(:runit_service) def start_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :start, service) end def stop_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :stop, service) end def enable_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :enable, service) end def disable_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :disable, service) end def restart_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :restart, service) end def reload_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :reload, service) end def status_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :status, service) end def once_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :once, service) end def hup_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :hup, service) end def cont_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :cont, service) end def term_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :term, service) end def kill_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :kill, service) end def up_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :up, service) end def down_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :down, service) end def usr1_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :usr1, service) end def usr2_runit_service(service) ChefSpec::Matchers::ResourceMatcher.new(:runit_service, :usr2, service) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
from-scratch-0.7.0 | cookbooks/runit/libraries/matchers.rb |
from-scratch-0.6.0 | cookbooks/runit/libraries/matchers.rb |
from-scratch-0.5.0 | cookbooks/runit/libraries/matchers.rb |