Class: FakeRecipe

Inherits:
Chef::Node
  • Object
show all
Includes:
OwncloudCookbook::CookbookHelpers
Defined in:
test/unit/support/fake_recipe.rb

Overview

Class to emulate the current recipe with some helpers.

Instance Method Summary collapse

Methods included from OwncloudCookbook::CookbookHelpers

#apply_owncloud_configuration, #calculate_dbhost, #calculate_trusted_domains, #owncloud_config, #owncloud_config_file, #owncloud_config_update, #owncloud_cookbook_config, #owncloud_trusted_domains, #save_owncloud_node_configuration

Constructor Details

#initializeFakeRecipe


27
28
29
30
31
32
33
34
# File 'test/unit/support/fake_recipe.rb', line 27

def initialize
  super
  name('node001')
  node = self
  Dir.glob("#{::File.dirname(__FILE__)}/../../../attributes/*.rb") do |f|
    node.from_file(f)
  end
end