class Serverkit::Resources::Recipe

Public Instance Methods

to_a() click to toggle source

@note Override

# File lib/serverkit/resources/recipe.rb, line 9
def to_a
  if valid?
    loaded_recipe.resources
  else
    self
  end
end

Private Instance Methods

loaded_recipe() click to toggle source

@return [Serverkit::Recipe] Recipe loaded from given path

# File lib/serverkit/resources/recipe.rb, line 20
def loaded_recipe
  @loaded_recipe ||= Loaders::RecipeLoader.new(path, variables_path: recipe.variables_path).load
end