Module: Ridley::BootstrapBinding::ClassMethods
- Defined in:
- lib/ridley/mixin/bootstrap_binding.rb
Instance Method Summary collapse
-
#default_options ⇒ Hash
A hash of default options to be used in the Context initializer.
- #validate_options(options = {}) ⇒ Object
Instance Method Details
#default_options ⇒ Hash
A hash of default options to be used in the Context initializer
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ridley/mixin/bootstrap_binding.rb', line 19 def ||= { validator_client: "chef-validator", attributes: Hash.new, run_list: Array.new, environment: "_default", sudo: true, hints: Hash.new } end |
#validate_options(options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/ridley/mixin/bootstrap_binding.rb', line 6 def ( = {}) if [:server_url].nil? raise Errors::ArgumentError, "A server_url is required for bootstrapping" end if [:validator_path].nil? raise Errors::ArgumentError, "A path to a validator is required for bootstrapping" end end |