Sha256: 5d28f9022a22cf06f95cbf0d3b090f05f904b41b7f027f7b2b0f6bac88a7d452

Contents?: true

Size: 631 Bytes

Versions: 86

Compression:

Stored size: 631 Bytes

Contents

class Main < Application

  provides :html, :json

  def index
    case content_type
    when :json
      display absolute_url(:nodes) => "Manage Nodes",
              absolute_url(:roles) => "Manage Roles",
              absolute_url(:cookbooks) => "Manage Cookbooks",
              absolute_url(:data) => "Manage Data Bags",
              absolute_url(:search) => "Search"
    else
      @webui_url = if Chef::Config[:chef_webui_url]
        Chef::Config[:chef_webui_url]
      elsif request.host =~ /(.*):4000/
        absolute_url(:top, :host => "#{$1}:4040")
      else
        nil
      end
      render
    end
  end
  
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
chef-server-api-10.30.4 app/controllers/main.rb
chef-server-api-10.30.2 app/controllers/main.rb
chef-server-api-10.30.2.rc.0 app/controllers/main.rb
chef-server-api-10.30.0.rc.2 app/controllers/main.rb
chef-server-api-10.30.0.rc.1 app/controllers/main.rb
chef-server-api-10.30.0.rc.0 app/controllers/main.rb
chef-server-api-10.28.0 app/controllers/main.rb
chef-server-api-10.28.0.rc.0 app/controllers/main.rb
chef-server-api-10.26.0 app/controllers/main.rb
chef-server-api-10.26.0.beta.0 app/controllers/main.rb
chef-server-api-10.24.4 app/controllers/main.rb
chef-server-api-10.24.0 app/controllers/main.rb
chef-server-api-10.24.0.rc.2 app/controllers/main.rb
chef-server-api-10.24.0.rc.1 app/controllers/main.rb
chef-server-api-10.24.0.rc.0 app/controllers/main.rb
chef-server-api-10.22.0 app/controllers/main.rb
chef-server-api-10.22.0.rc.0 app/controllers/main.rb
chef-server-api-10.20.0 app/controllers/main.rb
chef-server-api-10.18.4.rc.2 app/controllers/main.rb
chef-server-api-10.18.4.rc.1 app/controllers/main.rb