Module: PoolParty::Resources
- Included in:
- Cloud::Cloud
- Defined in:
- lib/poolparty/resources.rb,
lib/poolparty/resources/cron.rb,
lib/poolparty/resources/exec.rb,
lib/poolparty/resources/file.rb,
lib/poolparty/resources/user.rb,
lib/poolparty/resources/group.rb,
lib/poolparty/resources/mount.rb,
lib/poolparty/resources/package.rb,
lib/poolparty/resources/service.rb,
lib/poolparty/resources/symlink.rb,
lib/poolparty/poolparty/resource.rb,
lib/poolparty/resources/variable.rb,
lib/poolparty/resources/directory.rb,
lib/poolparty/resources/remote_file.rb,
lib/poolparty/plugins/chef/chef_recipe.rb,
lib/poolparty/plugins/chef/chef_library.rb,
lib/poolparty/plugins/chef/chef_deploy_definition.rb
Overview
Resources are items that poolparty can make available in your clouds. Resources are used in the clouds.rb, and in Plugins. Plugins are collections of resources.
All of these resources can be defined as has_resource and does_not_have_resource:
-
has_examplehas_file(...) -
does_not_have_For example:does_not_have_file(...)
Resources
see PoolParty::Resources::File
-
has_filePoolParty::Resources::File -
has_packagePoolParty::Resources::Package -
has_gempackagePoolParty::Resources::GempackageResource -
has_execPoolParty::Resources::Exec -
has_variable(for templates) PoolParty::Resources::Variable -
has_line_in_filePoolParty::Resources::LineInFile -
has_remotefilePoolParty::Resources::Remotefile -
hash_cronPoolParty::Resources::Cron -
has_hostPoolParty::Resources::Host -
has_servicePoolParty::Resources::Service -
has_symlinkPoolParty::Resources::Symlink -
has_directoryPoolParty::Resources::Directory -
has_deploy_directoryPoolParty::Resources::Deploydirectory -
has_mountPoolParty::Resources::Mount
Helper methods
* execute_if
Defined Under Namespace
Classes: ChefDeployDefinition, ChefLibrary, ChefRecipe, Cron, Directory, Exec, File, Group, Mount, Package, Remotefile, Resource, Service, Symlink, User, Variable
Instance Method Summary collapse
Instance Method Details
#custom_file(path, str) ⇒ Object
12 13 14 |
# File 'lib/poolparty/poolparty/resource.rb', line 12 def custom_file(path, str) write_to_file_in_storage_directory(path, str) end |