Class: PoolParty::Resources::ChefDeployDefinition
- Inherits:
-
Resource
- Object
- PoolPartyBaseClass
- Resource
- PoolParty::Resources::ChefDeployDefinition
- Defined in:
- lib/poolparty/plugins/chef/chef_deploy_definition.rb
Instance Attribute Summary
Attributes inherited from PoolPartyBaseClass
#init_opts, #ordered_resources
Instance Method Summary collapse
Methods inherited from Resource
#after_create, #after_load, available_resources, #before_load, #class_name_sym, #class_type_name, #cloud, #duplicatable?, #get_modified_options, inherited, #initialize, #is_a_resource?, #is_in_plugin?, #loaded, #resource?, #resource_name, #services
Methods included from SearchablePaths
Methods included from PoolParty::ResourcingDsl
#absent, #client_template_exists?, #client_templates_directory_exists?, #ensures, #get_client_or_gem_template, #is_absent, #is_present
Methods inherited from PoolPartyBaseClass
add_has_and_does_not_have_methods_for, #add_resource, add_resource_lookup_method, #add_service, #add_to_parent_if_parent_exists_and_is_a_service, #get_local_resource, #get_name_from_options_and_extra_options, #get_resource, #handle_option_values, #in_local_resources?, #initialize, #inspect, #is_a_resource?, #is_plugin?, #plugin_store, #resource, #resources, #run_in_context, #run_with_callbacks, #search_in_known_locations, #store_in_local_resources, #to_hash, #to_json
Constructor Details
This class inherits a constructor from PoolParty::Resources::Resource
Instance Method Details
#present ⇒ Object
26 27 28 |
# File 'lib/poolparty/plugins/chef/chef_deploy_definition.rb', line 26 def present :deploy end |
#to(n = nil) ⇒ Object
22 23 24 |
# File 'lib/poolparty/plugins/chef/chef_deploy_definition.rb', line 22 def to(n=nil) @to ||= n.nil? ? "/var/www" : n end |
#to_properties_hash ⇒ Object
18 19 20 |
# File 'lib/poolparty/plugins/chef/chef_deploy_definition.rb', line 18 def to_properties_hash {:pp_type => "deploy", :name => "#{to}"}.merge!() end |