Top Level Namespace

Includes:
Chef::Mixin::ShellOut, Openstack

Constant Summary

Boolean =
[TrueClass, FalseClass]

Instance Method Summary (collapse)

Instance Method Details

- (Object) identity_stubs



20
21
22
23
24
25
26
27
# File 'spec/spec_helper.rb', line 20

def identity_stubs
  ::Chef::Recipe.any_instance.stub(:address_for).
    with("lo").
    and_return "127.0.1.1"
  ::Chef::Recipe.any_instance.stub(:memcached_servers).and_return []
  ::Chef::Recipe.any_instance.stub(:db_password).and_return String.new
  ::Chef::Recipe.any_instance.stub(:secret).and_return String.new
end

- (Object) initialize(*args)

In earlier versions of Chef the LWRP DSL doesn't support specifying a default action, so you need to drop into Ruby.



24
25
26
27
# File 'resources/register.rb', line 24

def initialize(*args)
  super
  @action = :create
end