Sha256: 1f231092c0a60f76db0299c7c7eeb7eba867498f4ebda706be9963ea9c41218a
Contents?: true
Size: 739 Bytes
Versions: 3
Compression:
Stored size: 739 Bytes
Contents
module Serverspec module Helper module Type types = %w( base cgroup command cron default_gateway file group host iis_website iis_app_pool interface ipfilter ipnat iptables ip6tables kernel_module linux_kernel_parameter lxc mail_alias package php_config port ppa process routing_table selinux selinux_module service user yumrepo windows_feature windows_hot_fix windows_registry_key windows_scheduled_task zfs ) types.each {|type| require "serverspec/type/#{type}" } types.each do |type| define_method type do |*args| name = args.first eval "Serverspec::Type::#{type.to_camel_case}.new(name)" end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
serverspec-2.2.0 | lib/serverspec/helper/type.rb |
serverspec-clc-2.1.0 | lib/serverspec/helper/type.rb |
serverspec-2.1.0 | lib/serverspec/helper/type.rb |