class Deployinator::Views::DeploysStatus
Public Instance Methods
current_deploys()
click to toggle source
# File lib/deployinator/views/deploys_status.rb, line 10 def current_deploys ret = [] JSON.parse(get_list_of_deploys.to_json).each do |deploy| ret << { "stack" => deploy['stack'], "stage" => deploy['stage'] } end if (ret.length>0) ret else { "stack" => "alcohol", "stage" => "consuming" } end end