Module: Console::HelpHelper

Defined in:
app/helpers/console/help_helper.rb

Instance Method Summary collapse

Instance Method Details

#acceptable_use_urlObject



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_urlObject



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_urlObject



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_urlObject



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_urlObject



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_urlObject



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_pathObject



258
259
260
# File 'app/helpers/console/help_helper.rb', line 258

def community_path
  community_base_url('')
end

#community_quickstarts_urlObject



232
233
234
# File 'app/helpers/console/help_helper.rb', line 232

def community_quickstarts_url
  community_base_url 'quickstarts'
end

#community_search_urlObject



117
118
119
# File 'app/helpers/console/help_helper.rb', line 117

def community_search_url
  community_base_url 'search/node'
end

#community_urlObject



262
263
264
# File 'app/helpers/console/help_helper.rb', line 262

def community_url
  community_path
end


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


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_urlObject



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_urlObject



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_urlObject



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_pathObject



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_pathObject



61
62
63
# File 'app/helpers/console/help_helper.rb', line 61

def developers_path
  community_base_url 'developers'
end

#developers_urlObject



57
58
59
# File 'app/helpers/console/help_helper.rb', line 57

def developers_url
  community_base_url 'developers'
end

#events_urlObject



89
90
91
# File 'app/helpers/console/help_helper.rb', line 89

def events_url
  community_base_url 'events/'
end

#faq_urlObject



105
106
107
# File 'app/helpers/console/help_helper.rb', line 105

def faq_url
 community_base_url 'faq'
end

#forums_urlObject



97
98
99
# File 'app/helpers/console/help_helper.rb', line 97

def forums_url
  community_base_url 'forums/openshift'
end

#get_involved_developers_urlObject



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_urlObject



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_urlObject



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_urlObject



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_urlObject



188
189
190
# File 'app/helpers/console/help_helper.rb', line 188

def git_homepage_url
  "http://git-scm.com/"
end

#jboss_resources_urlObject



129
130
131
# File 'app/helpers/console/help_helper.rb', line 129

def jboss_resources_url
  community_base_url 'developers/jboss'
end

#jenkins_help_urlObject



93
94
95
# File 'app/helpers/console/help_helper.rb', line 93

def jenkins_help_url
  community_base_url 'jenkins'
end

#knowledge_base_urlObject



101
102
103
# File 'app/helpers/console/help_helper.rb', line 101

def knowledge_base_url
  community_base_url 'kb'
end


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_urlObject



145
146
147
# File 'app/helpers/console/help_helper.rb', line 145

def mongodb_resources_url
  community_base_url 'developers/mongodb'
end

#newsletter_signup_urlObject



13
14
15
# File 'app/helpers/console/help_helper.rb', line 13

def 
  community_base_url 'newsletter/signup'
end

#openshift_blog_urlObject



41
42
43
# File 'app/helpers/console/help_helper.rb', line 41

def openshift_blog_url
  community_base_url 'blogs'
end

#opensource_architecture_urlObject



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_urlObject



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_urlObject



165
166
167
# File 'app/helpers/console/help_helper.rb', line 165

def opensource_process_url
  community_base_url "wiki/community-process"
end

#policy_urlObject



200
201
202
# File 'app/helpers/console/help_helper.rb', line 200

def policy_url
  community_base_url 'policy'
end

#post_to_forum_urlObject



85
86
87
# File 'app/helpers/console/help_helper.rb', line 85

def post_to_forum_url
  community_base_url 'forums/openshift'
end

#pricing_urlObject



192
193
194
# File 'app/helpers/console/help_helper.rb', line 192

def pricing_url
  community_base_url 'developers/pricing'
end

#privacy_policy_urlObject



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_urlObject



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_urlObject



149
150
151
# File 'app/helpers/console/help_helper.rb', line 149

def scaling_help_url
  community_base_url 'developers/scaling'
end

#security_policy_urlObject



220
221
222
# File 'app/helpers/console/help_helper.rb', line 220

def security_policy_url
  community_base_url 'policy/security'
end

#services_agreement_urlObject



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_urlObject



109
110
111
# File 'app/helpers/console/help_helper.rb', line 109

def 
  community_base_url 'faq/i-just-signed-up-why-didnt-i-receive-an-email-confirmation'
end

#ssh_help_urlObject



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_pathObject



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_urlObject



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_urlObject



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_statusObject



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_urlObject



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_urlObject



9
10
11
# File 'app/helpers/console/help_helper.rb', line 9

def user_guide_url
  user_guide_topic_url 'index.html'
end

#videos_urlObject



133
134
135
# File 'app/helpers/console/help_helper.rb', line 133

def videos_url
  community_base_url 'videos'
end