Class: Deployinator::Views::Layout

Inherits:
Mustache
  • Object
show all
Includes:
Helpers::GitHelpers, Helpers::StackTailHelpers, Helpers::VersionHelpers
Defined in:
lib/deployinator/views/layout.rb

Constant Summary collapse

@@internal_partials =
["log", "log_table", "generic_single_push", "scroll_control", "messageboxes"]

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers::GitHelpers

#build_git_cmd, #get_git_head_rev, #get_git_head_rev_from_ls_output, #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

#all_eof, #all_push_lock_info, #all_pushes_locked?, #announce, #average_duration, #can_remove_stack_lock?, #censor_cmd, #check_command_safety, #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, #help_url, #help_url?, #http_host, #hyperlink, #init, #is_admin?, #link_stack_logfile, #lock_all_pushes, #lock_pushes, #log, #log_and_shout, #log_and_stream, #log_and_stream_error, #log_entries, #log_error, #log_string_to_file, #move_stack_logfile, #nice_time, #nicify_env, #not_dev?, #now, #push_lock_all_path, #push_lock_info, #push_lock_path, #pushes_locked?, #run_cmd, #run_cmd_safely, #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_all_pushes, #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

Class Method Details

.partial(name) ⇒ Object


17
18
19
20
21
22
23
# File 'lib/deployinator/views/layout.rb', line 17

def self.partial(name)
  if @@internal_partials.include?(name.to_s)
    File.read("#{File.dirname(__FILE__)}/../templates/#{name.to_s}.mustache")
  else
    super
  end
end

Instance Method Details

#additional_bottom_body_htmlObject


37
38
39
# File 'lib/deployinator/views/layout.rb', line 37

def additional_bottom_body_html
  ""
end

#additional_header_htmlObject


45
46
47
# File 'lib/deployinator/views/layout.rb', line 45

def additional_header_html
  ""
end

#additional_top_body_htmlObject


41
42
43
# File 'lib/deployinator/views/layout.rb', line 41

def additional_top_body_html
  ""
end

#disabled_overrideObject


33
34
35
# File 'lib/deployinator/views/layout.rb', line 33

def disabled_override
  @disabled_override
end

#push_orderObject


25
26
27
# File 'lib/deployinator/views/layout.rb', line 25

def push_order
  %w[production]
end

#set_stack(stack) ⇒ Object


29
30
31
# File 'lib/deployinator/views/layout.rb', line 29

def set_stack(stack)
  @stack = stack
end

#tailer_loading_messageObject


49
50
51
# File 'lib/deployinator/views/layout.rb', line 49

def tailer_loading_message
  "Currently connecting to tailer web socket. If this message persists for a long time, please contact your administrator. If you are developing a new stack, try restarting the deployinator-tailer."
end