Class: ProspectusTravis::Build
- Inherits:
-
Module
- Object
- Module
- ProspectusTravis::Build
- Defined in:
- lib/prospectus_travis.rb
Overview
Helper for automatically adding build status check
Instance Method Summary collapse
-
#extended(other) ⇒ Object
rubocop:disable Metrics/MethodLength.
-
#initialize(repo_slug) ⇒ Build
constructor
A new instance of Build.
Constructor Details
#initialize(repo_slug) ⇒ Build
Returns a new instance of Build.
53 54 55 |
# File 'lib/prospectus_travis.rb', line 53 def initialize(repo_slug) @repo_slug = repo_slug || raise('No repo specified') end |
Instance Method Details
#extended(other) ⇒ Object
rubocop:disable Metrics/MethodLength
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/prospectus_travis.rb', line 57 def extended(other) # rubocop:disable Metrics/MethodLength lookup = Lookup.new(@repo_slug) other.deps do item do name 'travis' expected do define_singleton_method(:load) do lookup.expected end end actual do define_singleton_method(:load) do lookup.actual end end end end end |