Module: DataKitten::Origins::Git
- Defined in:
- lib/data_kitten/origins/git.rb
Overview
Git origin module. Automatically mixed into Dataset for datasets that are loaded from Git repositories.
Instance Method Summary collapse
-
#change_history ⇒ Object
A history of changes to the Dataset, taken from the full git changelog.
-
#origin ⇒ Symbol
The origin type of the dataset.
Instance Method Details
#change_history ⇒ Object
A history of changes to the Dataset, taken from the full git changelog
28 29 30 31 32 |
# File 'lib/data_kitten/origins/git.rb', line 28 def change_history @change_history ||= begin repository.log.map{|commit| commit} end end |
#origin ⇒ Symbol
The origin type of the dataset.
22 23 24 |
# File 'lib/data_kitten/origins/git.rb', line 22 def origin :git end |