Class: Getv::Package::GitHub::Commit

Inherits:
Getv::Package::GitHub show all
Defined in:
lib/getv/package/github/commit.rb

Overview

Getv::Package::GitHub::Commit class

Instance Attribute Summary

Attributes inherited from Getv::Package

#name, #opts

Instance Method Summary collapse

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