Sha256: 8622d9c8556e48bf108f9dda8a0ea41b7302d886356754f157fafabd9a6b1f2a
Contents?: true
Size: 419 Bytes
Versions: 5
Compression:
Stored size: 419 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 @result << name end end
Version data entries
5 entries across 5 versions & 1 rubygems