Module: Console::HelpHelper
- Defined in:
- app/helpers/console/help_helper.rb
Instance Method Summary collapse
- #acceptable_use_url ⇒ Object
- #add_domains_user_guide_topic_url ⇒ Object
- #blog_post_url(post) ⇒ Object
- #cartridge_list_url ⇒ Object
- #cli_on_windows_user_guide_topic_url ⇒ Object
- #client_tools_help_url ⇒ Object
- #client_tools_install_help_url ⇒ Object
- #community_document_url(file) ⇒ Object
- #community_path ⇒ Object
- #community_quickstarts_url ⇒ Object
- #community_search_url ⇒ Object
- #community_url ⇒ Object
- #console_faq_links ⇒ Object
- #console_help_links ⇒ Object
- #create_quickstart_url ⇒ Object
- #deploy_hook_user_guide_topic_url ⇒ Object
- #developers_get_started_fast_url ⇒ Object
- #developers_get_started_path ⇒ Object
- #developers_path ⇒ Object
- #developers_url ⇒ Object
- #events_url ⇒ Object
- #faq_url ⇒ Object
- #forums_url ⇒ Object
- #get_involved_developers_url ⇒ Object
- #get_involved_url ⇒ Object
- #get_started_quickstart_url ⇒ Object
- #getting_started_guide_url ⇒ Object
- #getting_started_path(opts = nil) ⇒ Object
- #git_homepage_url ⇒ Object
- #jboss_resources_url ⇒ Object
- #jenkins_help_url ⇒ Object
- #knowledge_base_url ⇒ Object
- #legal_url ⇒ Object
- #livecd_wiki_url(anchor = nil) ⇒ Object
- #mongodb_resources_url ⇒ Object
- #newsletter_signup_url ⇒ Object
- #openshift_blog_url ⇒ Object
- #opensource_architecture_url ⇒ Object
- #opensource_community_url ⇒ Object
- #opensource_download_path(opts = nil) ⇒ Object
- #opensource_download_url(opts = nil) ⇒ Object
- #opensource_process_url ⇒ Object
- #policy_url ⇒ Object
- #post_to_forum_url ⇒ Object
- #pricing_url ⇒ Object
- #privacy_policy_url ⇒ Object
- #product_overview_path(opts = nil) ⇒ Object
- #rails_quickstart_guide_url ⇒ Object
- #scaling_help_url ⇒ Object
- #security_policy_url ⇒ Object
- #services_agreement_url ⇒ Object
- #signup_faq_url ⇒ Object
- #ssh_help_url ⇒ Object
- #ssh_keys_help_path ⇒ Object
- #suggest_features_url ⇒ Object
- #sync_git_with_remote_repo_knowledge_base_url ⇒ Object
- #tax_exempt_help_status ⇒ Object
- #terms_of_service_url ⇒ Object
-
#user_guide_topic_url(topic) ⇒ Object
Given a relative path within the user guide, display the topic.
- #user_guide_url ⇒ Object
- #videos_url ⇒ Object
Instance Method Details
#acceptable_use_url ⇒ Object
208 209 210 |
# File 'app/helpers/console/help_helper.rb', line 208 def acceptable_use_url community_base_url 'legal/acceptable_use' end |
#add_domains_user_guide_topic_url ⇒ Object
25 26 27 |
# File 'app/helpers/console/help_helper.rb', line 25 def add_domains_user_guide_topic_url user_guide_topic_url 'sect-OpenShift-User_Guide-Working_With_Domains.html' end |
#blog_post_url(post) ⇒ Object
137 138 139 |
# File 'app/helpers/console/help_helper.rb', line 137 def blog_post_url(post) community_base_url "blogs/#{post}" end |
#cartridge_list_url ⇒ Object
29 30 31 |
# File 'app/helpers/console/help_helper.rb', line 29 def cartridge_list_url community_base_url 'developers/technologies' end |
#cli_on_windows_user_guide_topic_url ⇒ Object
184 185 186 |
# File 'app/helpers/console/help_helper.rb', line 184 def cli_on_windows_user_guide_topic_url community_base_url 'developers/install-the-client-tools#windows' end |
#client_tools_help_url ⇒ Object
73 74 75 |
# File 'app/helpers/console/help_helper.rb', line 73 def client_tools_help_url community_base_url 'developers/tools' end |
#client_tools_install_help_url ⇒ Object
69 70 71 |
# File 'app/helpers/console/help_helper.rb', line 69 def client_tools_install_help_url community_base_url 'developers/install-the-client-tools' end |
#community_document_url(file) ⇒ Object
141 142 143 |
# File 'app/helpers/console/help_helper.rb', line 141 def community_document_url(file) community_base_url "sites/default/files/documents/#{file}" end |
#community_path ⇒ Object
258 259 260 |
# File 'app/helpers/console/help_helper.rb', line 258 def community_path community_base_url('') end |
#community_quickstarts_url ⇒ Object
232 233 234 |
# File 'app/helpers/console/help_helper.rb', line 232 def community_quickstarts_url community_base_url 'quickstarts' end |
#community_search_url ⇒ Object
117 118 119 |
# File 'app/helpers/console/help_helper.rb', line 117 def community_search_url community_base_url 'search/node' end |
#community_url ⇒ Object
262 263 264 |
# File 'app/helpers/console/help_helper.rb', line 262 def community_url community_path end |
#console_faq_links ⇒ Object
249 250 251 252 253 254 255 256 |
# File 'app/helpers/console/help_helper.rb', line 249 def console_faq_links [ {:href => community_base_url('faq/how-do-i-start-a-new-forum-discussion'), :name => 'How do I start a new Forum discussion?'}, {:href => community_base_url('faq/how-do-i-install-the-rhc-client-tools-on-windows'), :name => 'How do I install the rhc client tools on Windows?'} ] end |
#console_help_links ⇒ Object
236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'app/helpers/console/help_helper.rb', line 236 def console_help_links [ {:href => developers_url, :name => 'Developer Center'}, {:href => user_guide_url, :name => 'OpenShift User Guide'}, {:href => getting_started_path, :name => 'Installing OpenShift client tools on Mac OSX, Linux, and Windows'}, {:href => sync_git_with_remote_repo_knowledge_base_url, :name => 'Sync your OpenShift repo with an existing Git repo'} ] end |
#create_quickstart_url ⇒ Object
228 229 230 |
# File 'app/helpers/console/help_helper.rb', line 228 def create_quickstart_url community_base_url 'node/add/quickstart' end |
#deploy_hook_user_guide_topic_url ⇒ Object
21 22 23 |
# File 'app/helpers/console/help_helper.rb', line 21 def deploy_hook_user_guide_topic_url community_base_url 'developers/deploying-and-building-applications' end |
#developers_get_started_fast_url ⇒ Object
113 114 115 |
# File 'app/helpers/console/help_helper.rb', line 113 def developers_get_started_fast_url community_base_url 'developers/get-started' end |
#developers_get_started_path ⇒ Object
77 78 79 |
# File 'app/helpers/console/help_helper.rb', line 77 def developers_get_started_path community_base_url 'developers/get-started' end |
#developers_path ⇒ Object
61 62 63 |
# File 'app/helpers/console/help_helper.rb', line 61 def developers_path community_base_url 'developers' end |
#developers_url ⇒ Object
57 58 59 |
# File 'app/helpers/console/help_helper.rb', line 57 def developers_url community_base_url 'developers' end |
#events_url ⇒ Object
89 90 91 |
# File 'app/helpers/console/help_helper.rb', line 89 def events_url community_base_url 'events/' end |
#faq_url ⇒ Object
105 106 107 |
# File 'app/helpers/console/help_helper.rb', line 105 def faq_url community_base_url 'faq' end |
#forums_url ⇒ Object
97 98 99 |
# File 'app/helpers/console/help_helper.rb', line 97 def forums_url community_base_url 'forums/openshift' end |
#get_involved_developers_url ⇒ Object
49 50 51 |
# File 'app/helpers/console/help_helper.rb', line 49 def get_involved_developers_url community_base_url 'developers/get-involved' end |
#get_involved_url ⇒ Object
33 34 35 |
# File 'app/helpers/console/help_helper.rb', line 33 def get_involved_url community_base_url 'get-involved' end |
#get_started_quickstart_url ⇒ Object
53 54 55 |
# File 'app/helpers/console/help_helper.rb', line 53 def get_started_quickstart_url community_base_url 'developers/get-started' end |
#getting_started_guide_url ⇒ Object
180 181 182 |
# File 'app/helpers/console/help_helper.rb', line 180 def getting_started_guide_url community_base_url 'developers/install-the-client-tools' end |
#getting_started_path(opts = nil) ⇒ Object
157 158 159 |
# File 'app/helpers/console/help_helper.rb', line 157 def getting_started_path(opts=nil) community_base_url "get-started", opts end |
#git_homepage_url ⇒ Object
188 189 190 |
# File 'app/helpers/console/help_helper.rb', line 188 def git_homepage_url "http://git-scm.com/" end |
#jboss_resources_url ⇒ Object
129 130 131 |
# File 'app/helpers/console/help_helper.rb', line 129 def jboss_resources_url community_base_url 'developers/jboss' end |
#jenkins_help_url ⇒ Object
93 94 95 |
# File 'app/helpers/console/help_helper.rb', line 93 def jenkins_help_url community_base_url 'jenkins' end |
#knowledge_base_url ⇒ Object
101 102 103 |
# File 'app/helpers/console/help_helper.rb', line 101 def knowledge_base_url community_base_url 'kb' end |
#legal_url ⇒ Object
196 197 198 |
# File 'app/helpers/console/help_helper.rb', line 196 def legal_url community_base_url 'legal' end |
#livecd_wiki_url(anchor = nil) ⇒ Object
81 82 83 |
# File 'app/helpers/console/help_helper.rb', line 81 def livecd_wiki_url(anchor=nil) community_base_url "wiki/getting-started-with-openshift-origin-livecd#{anchor.present? ? "##{anchor}" : ''}" end |
#mongodb_resources_url ⇒ Object
145 146 147 |
# File 'app/helpers/console/help_helper.rb', line 145 def mongodb_resources_url community_base_url 'developers/mongodb' end |
#newsletter_signup_url ⇒ Object
13 14 15 |
# File 'app/helpers/console/help_helper.rb', line 13 def community_base_url 'newsletter/signup' end |
#openshift_blog_url ⇒ Object
41 42 43 |
# File 'app/helpers/console/help_helper.rb', line 41 def openshift_blog_url community_base_url 'blogs' end |
#opensource_architecture_url ⇒ Object
169 170 171 |
# File 'app/helpers/console/help_helper.rb', line 169 def opensource_architecture_url community_base_url "wiki/architecture-overview" end |
#opensource_community_url ⇒ Object
45 46 47 |
# File 'app/helpers/console/help_helper.rb', line 45 def opensource_community_url community_base_url 'open-source' end |
#opensource_download_path(opts = nil) ⇒ Object
173 174 175 |
# File 'app/helpers/console/help_helper.rb', line 173 def opensource_download_path(opts=nil) community_base_url "open-source/download-origin", opts end |
#opensource_download_url(opts = nil) ⇒ Object
176 177 178 |
# File 'app/helpers/console/help_helper.rb', line 176 def opensource_download_url(opts=nil) opensource_download_path opts end |
#opensource_process_url ⇒ Object
165 166 167 |
# File 'app/helpers/console/help_helper.rb', line 165 def opensource_process_url community_base_url "wiki/community-process" end |
#policy_url ⇒ Object
200 201 202 |
# File 'app/helpers/console/help_helper.rb', line 200 def policy_url community_base_url 'policy' end |
#post_to_forum_url ⇒ Object
85 86 87 |
# File 'app/helpers/console/help_helper.rb', line 85 def post_to_forum_url community_base_url 'forums/openshift' end |
#pricing_url ⇒ Object
192 193 194 |
# File 'app/helpers/console/help_helper.rb', line 192 def pricing_url community_base_url 'developers/pricing' end |
#privacy_policy_url ⇒ Object
212 213 214 |
# File 'app/helpers/console/help_helper.rb', line 212 def privacy_policy_url community_base_url 'legal/openshift_privacy' end |
#product_overview_path(opts = nil) ⇒ Object
161 162 163 |
# File 'app/helpers/console/help_helper.rb', line 161 def product_overview_path(opts=nil) community_base_url "paas", opts end |
#rails_quickstart_guide_url ⇒ Object
125 126 127 |
# File 'app/helpers/console/help_helper.rb', line 125 def rails_quickstart_guide_url community_base_url 'kb/kb-e1005-ruby-on-rails-express-quickstart-guide' end |
#scaling_help_url ⇒ Object
149 150 151 |
# File 'app/helpers/console/help_helper.rb', line 149 def scaling_help_url community_base_url 'developers/scaling' end |
#security_policy_url ⇒ Object
220 221 222 |
# File 'app/helpers/console/help_helper.rb', line 220 def security_policy_url community_base_url 'policy/security' end |
#services_agreement_url ⇒ Object
204 205 206 |
# File 'app/helpers/console/help_helper.rb', line 204 def services_agreement_url community_base_url 'legal/services_agreement' end |
#signup_faq_url ⇒ Object
109 110 111 |
# File 'app/helpers/console/help_helper.rb', line 109 def signup_faq_url community_base_url 'faq/i-just-signed-up-why-didnt-i-receive-an-email-confirmation' end |
#ssh_help_url ⇒ Object
65 66 67 |
# File 'app/helpers/console/help_helper.rb', line 65 def ssh_help_url community_base_url 'developers/remote-access' end |
#ssh_keys_help_path ⇒ Object
17 18 19 |
# File 'app/helpers/console/help_helper.rb', line 17 def ssh_keys_help_path community_base_url 'developers/remote-access#keys' end |
#suggest_features_url ⇒ Object
37 38 39 |
# File 'app/helpers/console/help_helper.rb', line 37 def suggest_features_url community_base_url 'ideas' end |
#sync_git_with_remote_repo_knowledge_base_url ⇒ Object
121 122 123 |
# File 'app/helpers/console/help_helper.rb', line 121 def sync_git_with_remote_repo_knowledge_base_url community_base_url 'kb/kb-e1006-sync-new-express-git-repo-with-your-own-existing-git-repo' end |
#tax_exempt_help_status ⇒ Object
224 225 226 |
# File 'app/helpers/console/help_helper.rb', line 224 def tax_exempt_help_status community_base_url 'policy/tax-exemptions' end |
#terms_of_service_url ⇒ Object
216 217 218 |
# File 'app/helpers/console/help_helper.rb', line 216 def terms_of_service_url community_base_url 'legal/site_terms' end |
#user_guide_topic_url(topic) ⇒ Object
Given a relative path within the user guide, display the topic
4 5 6 7 |
# File 'app/helpers/console/help_helper.rb', line 4 def user_guide_topic_url(topic) locale = 'en-US' "http://access.redhat.com/knowledge/docs/#{locale}/OpenShift/2.0/html/User_Guide/#{topic}" end |
#user_guide_url ⇒ Object
9 10 11 |
# File 'app/helpers/console/help_helper.rb', line 9 def user_guide_url user_guide_topic_url 'index.html' end |
#videos_url ⇒ Object
133 134 135 |
# File 'app/helpers/console/help_helper.rb', line 133 def videos_url community_base_url 'videos' end |