Module: Hibachi::Provisioning

Extended by:
ActiveSupport::Concern
Included in:
Model
Defined in:
lib/hibachi/provisioning.rb

Overview

Code for provisioning the box.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#chefObject

Run chef for the given recipe.



19
20
21
# File 'lib/hibachi/provisioning.rb', line 19

def chef
  Hibachi.run_chef recipe, background: run_in_background?
end

#nodeObject

Accessor for the global Chef JSON in an instance.



14
15
16
# File 'lib/hibachi/provisioning.rb', line 14

def node
  self.class.node
end