Class: GitComitter::Stage

Inherits:
Object
  • Object
show all
Defined in:
lib/git-comitter/cruise.rb

Instance Method Summary collapse

Constructor Details

#initialize(cruise_url, pipeline_name, stage_name) ⇒ Stage

Returns a new instance of Stage.



44
45
46
47
# File 'lib/git-comitter/cruise.rb', line 44

def initialize(cruise_url, pipeline_name, stage_name)
  @cruise = Pipeline.new(cruise_url, pipeline_name)
  @stage_name = stage_name
end

Instance Method Details

#should_not_checkin?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/git-comitter/cruise.rb', line 49

def should_not_checkin?
  stage_status != 'passed' 
end

#stage_statusObject



54
55
56
57
# File 'lib/git-comitter/cruise.rb', line 54

def stage_status
  @stage_status=@cruise.status @stage_name if @stage_status == nil
  @stage_status 
end