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

Version Path
posgra-0.2.3.beta lib/posgra/dsl/roles/group.rb
posgra-0.2.2 lib/posgra/dsl/roles/group.rb
posgra-0.2.1 lib/posgra/dsl/roles/group.rb
posgra-0.2.0 lib/posgra/dsl/roles/group.rb
posgra-0.1.9 lib/posgra/dsl/roles/group.rb