Sha256: 257755c60dd7baacc2d9a52055e6c0344cff15661ffd2ea0ec7b49daa5ceb3e3
Contents?: true
Size: 556 Bytes
Versions: 9
Compression:
Stored size: 556 Bytes
Contents
class Posgra::DSL::Roles::Group include Posgra::Logger::Helper include Posgra::TemplateHelper include Posgra::Utils::Helper attr_reader :result def initialize(context, group, options, &block) @group = group @options = options @context = context.merge(:group => group) @result = [] instance_eval(&block) if block end def user(name) name = name.to_s if matched?(name, @options[:include_role], @options[:exclude_role]) name = name.kind_of?(Regexp) ? name : name.to_s @result << name end end end
Version data entries
9 entries across 9 versions & 1 rubygems