Class: Deployinator::Views::DeploysStatus

Inherits:
Layout show all
Includes:
Helpers::DeployHelpers
Defined in:
lib/deployinator/views/deploys_status.rb

Constant Summary

Constants included from Helpers::StackTailHelpers

Helpers::StackTailHelpers::STACK_TAIL_VERSION

Constants included from Helpers

Helpers::RUN_LOG_PATH

Instance Attribute Summary

Attributes included from Helpers::PluginHelpers

#plugins

Instance Method Summary collapse

Methods included from Helpers::DeployHelpers

#get_deploy_process_title, #get_list_of_deploys, #is_deploy_active?, #stop_deploy

Methods inherited from Layout

#additional_bottom_body_html, #additional_header_html, #additional_top_body_html, #disabled_override, partial, #set_stack, #tailer_loading_message

Methods included from Helpers::GitHelpers

#build_git_cmd, #get_git_head_rev, #git_bump_version, #git_checkout_path, #git_clone, #git_filter_shas, #git_freshen_clone, #git_freshen_or_clone, #git_head_rev, #git_info_for_stack, #git_show_changed_files, #git_url, #github_list_committers, #is_git_repo, #use_github_diff, #which_github_host

Methods included from Helpers::StackTailHelpers

get_stack_tail_version, #stack_tail_version, #stack_tail_websocket_port

Methods included from Helpers::VersionHelpers

curl_get_url, get_build, get_version, get_version_by_url

Methods included from Helpers

#announce, #average_duration, #can_remove_stack_lock?, #clean, #deploy_host?, #dev_context?, #diff, #diff_url, #environments, #get_deploy_target_status, #get_from_cache, #get_log, #get_run_logs, #get_stack_select, #head_build, #http_host, #hyperlink, #init, #is_admin?, #link_stack_logfile, #lock_pushes, #log, #log_and_shout, #log_and_stream, #log_entries, #log_error, #log_string_to_file, #move_stack_logfile, #nice_time, #nicify_env, #not_dev?, #now, #push_lock_info, #push_lock_path, #pushes_locked?, #run_cmd, #run_cmd_with_retries, #run_log_path, #run_log_url, #runlog_filename, #runlog_thread_filename, #send_email, #stack, #strip_ws_to_nil, #timing_log, #unlock_pushes, #with_timeout, #write_file, #write_to_cache

Methods included from Helpers::PluginHelpers

#notify_plugins, #raise_event, #register_plugins

Methods included from Helpers::ViewHelpers

#allowed_to_push_to_prod?, #groups, #log_lines, #log_to_hash, #logout_url, #my_entries, #my_url, #username

Instance Method Details

#current_deploysObject



10
11
12
13
14
15
16
17
18
19
20
# 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