Sha256: 888c09facd589c8363465dd58df139e00bcca84c6a82bdc6d3c5730d38f97955

Contents?: true

Size: 286 Bytes

Versions: 11

Compression:

Stored size: 286 Bytes

Contents

class <%= config[:class_name] %><%= " < Struct.new(:user, :#{config[:resource]})" if config[:headless] %>
  attr_reader :user, :<%= config[:resource] %>

  def initialize(user, <%= config[:resource] %>)
    @user = user
    @<%= config[:resource] %> = <%= config[:resource] %>
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
eucalypt-0.8.0 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.7.2 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.7.1 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.7.0 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.6.2 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.6.1 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.6.0 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.5.4 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.5.3 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.5.2 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
eucalypt-0.5.1 lib/eucalypt/security/namespaces/security-policy/templates/policy.tt