Class: CodeBuildNotifier::ProjectSummary
- Inherits:
-
DynamoBase
- Object
- DynamoBase
- CodeBuildNotifier::ProjectSummary
- Defined in:
- lib/codebuild-notifier/project_summary.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/project_summary.rb', line 26 def update return unless whitelisted_branch? updates = project_summary_entry yield updates if block_given? update_item(updates) end |