Module: Ridley::DSL
- Included in:
- Connection
- Defined in:
- lib/ridley/dsl.rb,
lib/ridley/resources/node.rb,
lib/ridley/resources/role.rb,
lib/ridley/resources/client.rb,
lib/ridley/resources/search.rb,
lib/ridley/resources/sandbox.rb,
lib/ridley/resources/cookbook.rb,
lib/ridley/resources/data_bag.rb,
lib/ridley/resources/environment.rb
Overview
A DSL to be included into Ridley::Connection. Instance functions of the same name as Chef a resource are coerced into class functions of a class of the same name.
This is accomplished by returning a Ridley::Context object and coercing any messages sent to it into a message to the Chef resource’s class in Ridley.
Instance Method Summary collapse
-
#client ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Client.
-
#cookbook ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Cookbook.
-
#data_bag ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::DataBag.
-
#environment ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Environment.
-
#node ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Node.
-
#role ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Role.
-
#sandbox ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Sandbox.
-
#search(index, query = nil, options = {}) ⇒ Hash
Creates an runs a new Ridley::Search.
-
#search_indexes ⇒ Array<Symbol, String>
Return the array of all possible search indexes for the including connection.
Instance Method Details
#client ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Client. This coercion sends an instance of the including class along to the class function.
71 72 73 |
# File 'lib/ridley/resources/client.rb', line 71 def client ChainLink.new(self, Ridley::Client) end |
#cookbook ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Cookbook. This coercion sends an instance of the including class along to the class function.
49 50 51 |
# File 'lib/ridley/resources/cookbook.rb', line 49 def cookbook ChainLink.new(self, Ridley::Cookbook) end |
#data_bag ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::DataBag. This coercion sends an instance of the including class along to the class function.
79 80 81 |
# File 'lib/ridley/resources/data_bag.rb', line 79 def data_bag ChainLink.new(self, Ridley::DataBag) end |
#environment ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Environment. This coercion sends an instance of the including class along to the class function.
91 92 93 |
# File 'lib/ridley/resources/environment.rb', line 91 def environment ChainLink.new(self, Ridley::Environment) end |
#node ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Node. This coercion sends an instance of the including class along to the class function.
203 204 205 |
# File 'lib/ridley/resources/node.rb', line 203 def node ChainLink.new(self, Ridley::Node) end |
#role ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Role. This coercion sends an instance of the including class along to the class function.
75 76 77 |
# File 'lib/ridley/resources/role.rb', line 75 def role ChainLink.new(self, Ridley::Role) end |
#sandbox ⇒ Ridley::ChainLink
Coerces instance functions into class functions on Ridley::Sandbox. This coercion sends an instance of the including class along to the class function.
118 119 120 |
# File 'lib/ridley/resources/sandbox.rb', line 118 def sandbox ChainLink.new(self, Ridley::Sandbox) end |