-
Notifications
You must be signed in to change notification settings - Fork 22
Usage
Dan Ryan edited this page Jun 13, 2012
·
1 revision
Get a list of all clients:
Spice.clients
Get a list of clients filtered by a certain criteria:
Spice.clients(:q => "name:foo*")
Get a single client:
Spice.client("foo")
Get a list of all cookbooks:
Spice.cookbooks
Get a single cookbook:
Spice.cookbook("foo")
Get a list of all data bags:
Spice.data_bags
Get a list of data bags filtered by a certain criteria:
Spice.data_bags(:q => "name:foo*")
Get a single data bag:
Spice.data_bag("foo")
Get a data bag item:
Spice.data_bag_item("name", "id")
Get a list of all environments:
Spice.environments
Get a list of environments filtered by a certain criteria:
Spice.environments(:q => "name:foo*")
Get a single environment:
Spice.environment("foo")
Get a list of all nodes:
Spice.nodes
Get a list of nodes filtered by a certain criteria:
Spice.nodes(:q => "hostname:app*")
Get a single node:
Spice.node("foo")
Get a list of all roles:
Spice.roles
Get a list of nodes filtered by a certain criteria:
Spice.roles(:q => "name:app*")
Get a single node:
Spice.role("foo")