Class: Getv::Package::GitHub::Commit
- Inherits:
-
Getv::Package::GitHub
- Object
- Getv::Package
- Getv::Package::GitHub
- Getv::Package::GitHub::Commit
- Defined in:
- lib/getv/package/github/commit.rb
Overview
Getv::Package::GitHub::Commit class
Instance Attribute Summary
Attributes inherited from Getv::Package
Instance Method Summary collapse
-
#initialize(name, opts = {}) ⇒ Commit
constructor
A new instance of Commit.
Methods inherited from Getv::Package
create, #defaults, #latest_version, #update_versions, #versions
Constructor Details
#initialize(name, opts = {}) ⇒ Commit
Returns a new instance of Commit.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/getv/package/github/commit.rb', line 8 def initialize(name, opts = {}) opts = { branch: 'master', select_search: '^((\d{8})(\d{6}),(([a-z\d]{7})(.*)))$', semantic_only: false }.merge(opts) opts = defaults.merge(opts) opts = github_defaults(name).merge(opts) super name, opts end |