class Streak::Stage

Public Class Methods

all(pipeline_key) click to toggle source
# File lib/streak/stage.rb, line 3
def self.all(pipeline_key)
  res = Streak.request(:get, "/pipelines/#{pipeline_key}/stages")
  convert_to_streak_object(res, Stage)
end
create(pipeline_key, params) click to toggle source
# File lib/streak/stage.rb, line 13
def self.create(pipeline_key, params)
  res = Streak.request(:put, "/pipelines/#{pipeline_key}/stages", params)
  convert_to_streak_object(res, Stage)
end
find(pipeline_key, stage_key) click to toggle source
# File lib/streak/stage.rb, line 8
def self.find(pipeline_key, stage_key)
  res = Streak.request(:get, "/pipelines/#{pipeline_key}/stages/#{stage_key}")
  convert_to_streak_object(res, Stage)
end