Class: CodeBuildNotifier::BranchEntry
- Inherits:
-
DynamoBase
- Object
- DynamoBase
- CodeBuildNotifier::BranchEntry
- Defined in:
- lib/codebuild-notifier/branch_entry.rb
Instance Attribute Summary
Attributes inherited from DynamoBase
Instance Method Summary collapse
-
#update {|updates| ... } ⇒ Object
Creates entries in a partition key with hardcoded primary key.
Methods inherited from DynamoBase
Constructor Details
This class inherits a constructor from CodeBuildNotifier::DynamoBase
Instance Method Details
#update {|updates| ... } ⇒ Object
Creates entries in a partition key with hardcoded primary key. Within the partition key, there is one record for each github repo. The ‘projects’ field in that record is a Map data type, keyed off project code, containing the status of the last build for that code.
26 27 28 29 30 31 32 |
# File 'lib/codebuild-notifier/branch_entry.rb', line 26 def update updates = hash_to_dynamo_update(branch_entry).merge( key: { source_id: source_id, version_key: version_key } ) yield updates if block_given? update_item(updates) end |