Class: ChefServerSlice::Status
- Inherits:
-
Application
- Object
- Merb::Controller
- Application
- ChefServerSlice::Status
- Defined in:
- app/controllers/status.rb
Instance Method Summary collapse
Methods inherited from Application
#absolute_slice_url, #access_denied, #authorized_node, #escape_node_id, #expand_cookbook_deps, #fix_up_node_id, #get_available_recipes, #load_all_files, #load_cookbook_segment, #login_required, #redirect_back_or_default, #segment_files, #specific_cookbooks, #store_location
Instance Method Details
#index ⇒ Object
26 27 28 29 30 31 32 |
# File 'app/controllers/status.rb', line 26 def index @status = Chef::CouchDB.new.get_view("nodes", "status")["rows"].inject([]) do |result, item| result << item["value"] result end display @status end |