Class: Solid::Commands
- Inherits:
-
Object
- Object
- Solid::Commands
- Defined in:
- lib/solid/commands.rb
Constant Summary
Constants included from Errors
Errors::SERVER_REQUIRED, Errors::SSH_AUTH_REQUIRED, Errors::SSH_KEY_REQUIRED, Errors::SSH_PWD_REQUIRED
Instance Method Summary collapse
-
#initialize(with_dna_file, &block) ⇒ Commands
constructor
A new instance of Commands.
- #run_chef ⇒ Object
Constructor Details
#initialize(with_dna_file, &block) ⇒ Commands
Returns a new instance of Commands.
6 7 8 9 10 |
# File 'lib/solid/commands.rb', line 6 def initialize with_dna_file, &block @dna = parse_dna(with_dna_file) validate_dna self.instance_eval(&block) if block_given? end |
Instance Method Details
#run_chef ⇒ Object
12 13 14 15 16 |
# File 'lib/solid/commands.rb', line 12 def run_chef @dna["servers"].each do |server| run server end end |