Class: Pray::TrustRule

Inherits:
Struct
  • Object
show all
Defined in:
lib/pray/trust.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(match_prefix: nil, allow: true, require_signed_commit: false, allowed_signing_keys: [], allowed_host_keys: [], allowed_publishers: []) ⇒ TrustRule

Returns a new instance of TrustRule.



11
12
13
14
15
16
# File 'lib/pray/trust.rb', line 11

def initialize(
  match_prefix: nil, allow: true, require_signed_commit: false,
  allowed_signing_keys: [], allowed_host_keys: [], allowed_publishers: []
)
  super
end

Instance Attribute Details

#allowObject

Returns the value of attribute allow

Returns:

  • (Object)

    the current value of allow



7
8
9
# File 'lib/pray/trust.rb', line 7

def allow
  @allow
end

#allowed_host_keysObject

Returns the value of attribute allowed_host_keys

Returns:

  • (Object)

    the current value of allowed_host_keys



7
8
9
# File 'lib/pray/trust.rb', line 7

def allowed_host_keys
  @allowed_host_keys
end

#allowed_publishersObject

Returns the value of attribute allowed_publishers

Returns:

  • (Object)

    the current value of allowed_publishers



7
8
9
# File 'lib/pray/trust.rb', line 7

def allowed_publishers
  @allowed_publishers
end

#allowed_signing_keysObject

Returns the value of attribute allowed_signing_keys

Returns:

  • (Object)

    the current value of allowed_signing_keys



7
8
9
# File 'lib/pray/trust.rb', line 7

def allowed_signing_keys
  @allowed_signing_keys
end

#match_prefixObject

Returns the value of attribute match_prefix

Returns:

  • (Object)

    the current value of match_prefix



7
8
9
# File 'lib/pray/trust.rb', line 7

def match_prefix
  @match_prefix
end

#require_signed_commitObject

Returns the value of attribute require_signed_commit

Returns:

  • (Object)

    the current value of require_signed_commit



7
8
9
# File 'lib/pray/trust.rb', line 7

def require_signed_commit
  @require_signed_commit
end