diff --git a/chef-server-webui/app/helpers/cookbook_attributes_helper.rb b/chef-server-webui/app/helpers/cookbook_attributes_helper.rb deleted file mode 100644 index 641c0bbfd41..00000000000 --- a/chef-server-webui/app/helpers/cookbook_attributes_helper.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Merb - module ChefServerWebui - module CookbookAttributesHelper - - end - end -end # Merb diff --git a/chef-server-webui/app/helpers/cookbook_definitions_helper.rb b/chef-server-webui/app/helpers/cookbook_definitions_helper.rb deleted file mode 100644 index 905db824185..00000000000 --- a/chef-server-webui/app/helpers/cookbook_definitions_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Merb - module ChefServerWebui - module CookbookDefinitionsHelper - - end - - end -end # Merb diff --git a/chef-server-webui/app/helpers/cookbook_files_helper.rb b/chef-server-webui/app/helpers/cookbook_files_helper.rb deleted file mode 100644 index 0425d1664e7..00000000000 --- a/chef-server-webui/app/helpers/cookbook_files_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Merb - module ChefServerWebui - module CookbookFilesHelper - - end - - end -end # Merb diff --git a/chef-server-webui/app/helpers/cookbook_libraries_helper.rb b/chef-server-webui/app/helpers/cookbook_libraries_helper.rb deleted file mode 100644 index bc6eded61bc..00000000000 --- a/chef-server-webui/app/helpers/cookbook_libraries_helper.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Merb - module ChefServerWebui - module CookbookLibrariesHelper - - end - end -end # Merb diff --git a/chef-server-webui/app/helpers/cookbook_recipes_helper.rb b/chef-server-webui/app/helpers/cookbook_recipes_helper.rb deleted file mode 100644 index 98aa8a16f86..00000000000 --- a/chef-server-webui/app/helpers/cookbook_recipes_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Merb - module ChefServerWebui - module CookbookRecipesHelper - - end - - end -end # Merb diff --git a/chef-server-webui/app/helpers/cookbook_templates_helper.rb b/chef-server-webui/app/helpers/cookbook_templates_helper.rb deleted file mode 100644 index ba62387f529..00000000000 --- a/chef-server-webui/app/helpers/cookbook_templates_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Merb - module ChefServerWebui - module CookbookTemplatesHelper - - end - - end -end # Merb diff --git a/chef-server-webui/app/helpers/exceptions_helper.rb b/chef-server-webui/app/helpers/exceptions_helper.rb deleted file mode 100644 index e27ca180af5..00000000000 --- a/chef-server-webui/app/helpers/exceptions_helper.rb +++ /dev/null @@ -1,6 +0,0 @@ -module Merb - module ChefServerWebui - module ExceptionsHelper - end - end -end # Merb diff --git a/chef-server-webui/app/helpers/global_helpers.rb b/chef-server-webui/app/helpers/global_helpers.rb deleted file mode 100644 index f7afdbf0574..00000000000 --- a/chef-server-webui/app/helpers/global_helpers.rb +++ /dev/null @@ -1,39 +0,0 @@ -# -# Author:: Adam Jacob () -# Copyright:: Copyright (c) 2008 Opscode, Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Possibly Dead Code. To revive it, move the GlobalHelpers module into the -# Merb namespace - -# module Merb -# module ChefServerWebui -# -# module GlobalHelpers -# # helpers defined here available to all views. -# def resource_collection(collection) -# html = "" -# html -# end -# -# end -# end -# end -# diff --git a/chef-server-webui/app/helpers/nodes_helper.rb b/chef-server-webui/app/helpers/nodes_helper.rb deleted file mode 100644 index cc61329da07..00000000000 --- a/chef-server-webui/app/helpers/nodes_helper.rb +++ /dev/null @@ -1,43 +0,0 @@ -# -# Author:: Adam Jacob () -# Author:: AJ Christensen () -# Copyright:: Copyright (c) 2008 Opscode, Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Possibly dead code. to revive it, move NodesHelper into the Merb namespace. -# module Merb -# module ChefServerWebui -# module NodesHelper -# def recipe_list(node) -# response = "" -# node.recipes.each do |recipe| -# response << "
  • #{recipe}
  • \n" -# end -# response -# end -# -# def attribute_list(node) -# response = "" -# node.each_attribute do |k,v| -# response << "
  • #{k}: #{v}
  • \n" -# end -# response -# end -# -# end -# end -# end -# diff --git a/chef-server-webui/app/helpers/openid_consumer_helper.rb b/chef-server-webui/app/helpers/openid_consumer_helper.rb deleted file mode 100644 index 33bfe193ffa..00000000000 --- a/chef-server-webui/app/helpers/openid_consumer_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Merb - module ChefServerWebui - module OpenidConsumerHelper - - end - end - -end # Merb diff --git a/chef-server-webui/app/helpers/openid_register_helper.rb b/chef-server-webui/app/helpers/openid_register_helper.rb deleted file mode 100644 index 1eadb4dfebf..00000000000 --- a/chef-server-webui/app/helpers/openid_register_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Merb - module ChefServerWebui - module OpenidRegisterHelper - - end - end - -end # Merb diff --git a/chef-server-webui/app/helpers/openid_server_helper.rb b/chef-server-webui/app/helpers/openid_server_helper.rb deleted file mode 100644 index 366e36a091e..00000000000 --- a/chef-server-webui/app/helpers/openid_server_helper.rb +++ /dev/null @@ -1,6 +0,0 @@ -module Merb - module ChefServerWebui - module OpenidServerHelper - end - end -end # Merb diff --git a/chef-server-webui/app/helpers/openid_server_helpers.rb b/chef-server-webui/app/helpers/openid_server_helpers.rb deleted file mode 100644 index a1ca1a4dafd..00000000000 --- a/chef-server-webui/app/helpers/openid_server_helpers.rb +++ /dev/null @@ -1,32 +0,0 @@ -# -# Author:: Adam Jacob () -# Copyright:: Copyright (c) 2008 Opscode, Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# possibly dead code. - -# module Merb -# module ChefServerWebui -# module OpenidServerHelper -# -# def url_for_user -# url(:openid_node, :username => session[:username]) -# end -# -# end -# end -# end -# diff --git a/chef-server-webui/app/helpers/roles_helper.rb b/chef-server-webui/app/helpers/roles_helper.rb deleted file mode 100644 index b6d46cdcd1c..00000000000 --- a/chef-server-webui/app/helpers/roles_helper.rb +++ /dev/null @@ -1,5 +0,0 @@ -module Merb - module RolesHelper - - end -end # Merb \ No newline at end of file diff --git a/chef-server-webui/app/helpers/search_entries_helper.rb b/chef-server-webui/app/helpers/search_entries_helper.rb deleted file mode 100644 index 08ced2366bc..00000000000 --- a/chef-server-webui/app/helpers/search_entries_helper.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Merb - module ChefServerWebui - module SearchEntriesHelper - - end - end - -end # Merb diff --git a/chef-server-webui/app/helpers/search_helper.rb b/chef-server-webui/app/helpers/search_helper.rb deleted file mode 100644 index 5579c6bef28..00000000000 --- a/chef-server-webui/app/helpers/search_helper.rb +++ /dev/null @@ -1,44 +0,0 @@ -# TODO: missing license header. - - -# possibly dead code. to revive, move SearchHelper to the Merb namespace. - -# module Merb -# module ChefServerWebui -# module SearchHelper -# def output_path(attributes) -# res = Hash.new -# attributes.each do |path| -# parts = path.split("/") -# unless parts[0].nil? -# parts.shift if parts[0].length == 0 -# end -# res[path] = ohai_walk(parts) -# end -# res -# end -# -# def ohai_walk(path) -# unless path[0] -# @@ohai.to_json -# else -# ohai_walk_r(@@ohai, path) -# end -# end -# -# def ohai_walk_r(ohai, path) -# hop = (ohai.is_a?(Array) ? path.shift.to_i : path.shift) -# if ohai[hop] -# if path[0] -# ohai_walk_r(ohai[hop], path) -# else -# ohai[hop].to_json -# end -# else -# nil -# end -# end -# end -# end -# end # Merb -#