Class: PoolParty::ChefClient

Inherits:
Chef show all
Defined in:
lib/poolparty/chef_client.rb

Overview

Chef class bootstrapping chef-client.

Constant Summary

Constants inherited from Chef

PoolParty::Chef::BOOTSTRAP_BINS, PoolParty::Chef::BOOTSTRAP_DIRS, PoolParty::Chef::BOOTSTRAP_GEMS, PoolParty::Chef::BOOTSTRAP_PACKAGES

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Chef

#attributes, #compile!, get_chef, #node_bootstrap!, #node_bootstrapped?, #node_run!, #node_stop!, #override_attributes, #recipe, #recipes, types

Methods inherited from Base

#initialize, #method_missing, #run

Constructor Details

This class inherits a constructor from PoolParty::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PoolParty::Chef

Instance Method Details

#openid_url(url = nil) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/poolparty/chef_client.rb', line 13

def openid_url(url=nil)
  if url.nil?
    return @openid_url||= (u=URI.parse(server_url)
    u.port=4001
    openid_url u.to_s)
  else
    @openid_url=url 
  end
end

#roles(*roles) ⇒ Object



23
24
25
26
# File 'lib/poolparty/chef_client.rb', line 23

def roles(*roles)
  return @_roles||=[cloud.name] if roles.empty?
  @_roles=roles
end