Class: Cerbos::Hub::Stores::Input::ChangeDetails::Origin::Git
- Inherits:
-
Cerbos::Hub::Stores::Input::ChangeDetails::Origin
- Object
- Cerbos::Hub::Stores::Input::ChangeDetails::Origin
- Cerbos::Hub::Stores::Input::ChangeDetails::Origin::Git
- Defined in:
- lib/cerbos/hub/stores/input/change_details/origin.rb
Overview
Details of a change made to a store when syncing it with a Git repository.
Instance Attribute Summary collapse
-
#author ⇒ String
readonly
The author of the commit with which the store was synced.
-
#author_date ⇒ Time?
readonly
The author date of the commit with which the store was synced.
-
#commit_date ⇒ Time?
readonly
The commit date of the commit with which the store was synced.
-
#committer ⇒ String
readonly
The committer of the commit with which the store was synced.
-
#hash ⇒ String
readonly
The hash of the commit with which the store was synced.
-
#message ⇒ String
readonly
The message of the commit with which the store was synced.
-
#ref ⇒ String
readonly
The Git ref with which the store was synced.
-
#repo ⇒ String
readonly
The Git repository with which the store was synced.
Instance Method Summary collapse
-
#initialize(repo: "", ref: "", hash: "", message: "", committer: "", commit_date: nil, author: "", author_date: nil) ⇒ Git
constructor
Specify details of a change made to a store when syncing it with a Git repository.
Constructor Details
#initialize(repo: "", ref: "", hash: "", message: "", committer: "", commit_date: nil, author: "", author_date: nil) ⇒ Git
Specify details of a change made to a store when syncing it with a Git repository.
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 68 def initialize( repo: "", ref: "", hash: "", message: "", committer: "", commit_date: nil, author: "", author_date: nil ) @repo = repo @ref = ref @hash = hash @message = @committer = committer @commit_date = commit_date @author = @author_date = end |
Instance Attribute Details
#author ⇒ String (readonly)
The author of the commit with which the store was synced.
50 51 52 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 50 def @author end |
#author_date ⇒ Time? (readonly)
The author date of the commit with which the store was synced.
56 57 58 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 56 def @author_date end |
#commit_date ⇒ Time? (readonly)
The commit date of the commit with which the store was synced.
45 46 47 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 45 def commit_date @commit_date end |
#committer ⇒ String (readonly)
The committer of the commit with which the store was synced.
39 40 41 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 39 def committer @committer end |
#hash ⇒ String (readonly)
The hash of the commit with which the store was synced.
29 30 31 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 29 def hash @hash end |
#message ⇒ String (readonly)
The message of the commit with which the store was synced.
34 35 36 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 34 def @message end |
#ref ⇒ String (readonly)
The Git ref with which the store was synced.
24 25 26 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 24 def ref @ref end |
#repo ⇒ String (readonly)
The Git repository with which the store was synced.
19 20 21 |
# File 'lib/cerbos/hub/stores/input/change_details/origin.rb', line 19 def repo @repo end |