Class: ProspectusDockerhub::Build

Inherits:
Module
  • Object
show all
Defined in:
lib/prospectus_dockerhub.rb

Overview

Helper for automatically adding build status check

Instance Method Summary collapse

Constructor Details

#initialize(repo_slug) ⇒ Build

Returns a new instance of Build.



29
30
31
# File 'lib/prospectus_dockerhub.rb', line 29

def initialize(repo_slug)
  @repo_slug = repo_slug || raise('No repo specified')
end

Instance Method Details

#extended(other) ⇒ Object

rubocop:disable Metrics/MethodLength



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/prospectus_dockerhub.rb', line 33

def extended(other) # rubocop:disable Metrics/MethodLength
  actual_val, expected_val = parse_status

  other.deps do
    item do
      name 'dockerhub'

      expected do
        static
        set expected_val
      end

      actual do
        static
        set actual_val
      end
    end
  end
end