Module: EasyType

Defined in:
lib/easy_type.rb,
lib/easy_type/type.rb,
lib/easy_type/group.rb,
lib/easy_type/daemon.rb,
lib/easy_type/helpers.rb,
lib/easy_type/mungers.rb,
lib/easy_type/version.rb,
lib/easy_type/provider.rb,
lib/easy_type/template.rb,
lib/easy_type/parameter.rb,
lib/easy_type/validators.rb,
lib/easy_type/path_helpers.rb,
lib/easy_type/file_includer.rb,
lib/easy_type/script_builder.rb,
lib/easy_type/generators/base.rb,
lib/easy_type/generators/easy_generator.rb,
lib/easy_type/generators/easy_type_generator.rb,
lib/easy_type/generators/regular_type_generator.rb,
lib/easy_type/generators/easy_attribute_generator.rb

Overview

Define all common validators available for all types

Defined Under Namespace

Modules: FileIncluder, Generators, Helpers, Mungers, Parameter, PathHelpers, Provider, Template, Type, Validators Classes: Daemon, Group, ScriptBuilder

Constant Summary collapse

VERSION =
'0.12.4'
STRING_OF_DIGITS =
/^\d+$/

Class Method Summary collapse

Class Method Details

.included(parent) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/easy_type.rb', line 18

def self.included(parent)
  parent.send(:include, EasyType::Helpers)
  parent.send(:include, EasyType::FileIncluder)
  parent.send(:include, EasyType::Template)
  parent.send(:include, EasyType::Type) if parent.ancestors.include?(Puppet::Type)
  parent.send(:include, EasyType::Parameter) if parent.ancestors.include?(Puppet::Parameter)
end