Class: PoolParty::Plugin::ChefDeploy
- Inherits:
-
Plugin
- Object
- PoolParty::PoolPartyBaseClass
- Service
- Plugin
- PoolParty::Plugin::ChefDeploy
- Defined in:
- lib/poolparty/plugins/chef/chef_deploy.rb
Instance Attribute Summary
Attributes inherited from PoolParty::PoolPartyBaseClass
#init_opts, #ordered_resources
Instance Method Summary collapse
Methods inherited from Plugin
#after_create, #before_load, #bootstrap_commands, #bootstrap_gems, #calls, #cloud, #configure_commands, #enable, inherited, #initialize, #is_plugin?
Methods included from Callbacks
Methods included from DependencyResolverCloudExtensions
Methods included from CloudResourcer
#dependency_resolver, #instances, #plugin_directory, #run_stored_block, #store_block, #stored_block, #using
Methods inherited from Service
add_has_and_does_not_have_methods_for, #cloud, #to_properties_hash
Methods inherited from PoolParty::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
Methods included from SearchablePaths
Constructor Details
This class inherits a constructor from PoolParty::Plugin::Plugin
Instance Method Details
#before_configure ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/poolparty/plugins/chef/chef_deploy.rb', line 38 def before_configure configure_commands [ "mkdir -p /etc/chef/lib", "if [ -d /var/poolparty/dr_configure/etc/chef/lib ] ; then cp -R /var/poolparty/dr_configure/etc/chef/lib /etc/chef; fi" ] ::Suitcase::Zipper.add("#{::File.dirname(__FILE__)}/../../../../vendor/chef/chef-deploy", "etc/chef/lib") end |
#loaded(o = {}) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/poolparty/plugins/chef/chef_deploy.rb', line 28 def loaded(o={}) if .reject {|k,v| v.nil? }.keys == [:ensures] has_chef_library "chef-deploy/lib/chef-deploy.rb" else raise ::ReposMissingError.new unless repo has_chef_library "chef-deploy/lib/chef-deploy.rb" has_chef_deploy_definition(.merge(:to => name)) end end |