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