public class Recipe extends Object implements org.jclouds.scriptbuilder.domain.Statement
...
| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
attribs |
String |
cookbook |
String |
recipe |
String |
url |
| Constructor and Description |
|---|
Recipe(String cookbook)
To run the default recipe from a provided cookbook with the specified name.
|
Recipe(String cookbook,
String recipe)
To run a particular recipe from a provided cookbook with the specified
name.
|
Recipe(String cookbook,
String recipe,
String url)
To run a particular recipe from a cookbook located at
url. |
| Modifier and Type | Method and Description |
|---|---|
Iterable<String> |
functionDependencies(org.jclouds.scriptbuilder.domain.OsFamily family) |
static org.jclouds.compute.options.RunScriptOptions |
recipeScriptOptions(org.jclouds.compute.options.RunScriptOptions options) |
String |
render(org.jclouds.scriptbuilder.domain.OsFamily family)
Transforms the recipe into the series of statements that must be ran on the
server (after chef is installed).
|
String |
toJSON()
Transforms the recipe into a JSON format that can be interpreted by the
"chef-solo" command.
|
public final String cookbook
public final String recipe
public String url
public Recipe(String cookbook)
cookbook - public Recipe(String cookbook, String recipe)
cookbook - public String toJSON()
public Iterable<String> functionDependencies(org.jclouds.scriptbuilder.domain.OsFamily family)
functionDependencies in interface org.jclouds.scriptbuilder.domain.Statementpublic String render(org.jclouds.scriptbuilder.domain.OsFamily family)
render in interface org.jclouds.scriptbuilder.domain.Statementpublic static org.jclouds.compute.options.RunScriptOptions recipeScriptOptions(org.jclouds.compute.options.RunScriptOptions options)
Copyright © 2010–2016 Cloudera. All rights reserved.