Module: ChefZero::RSpec::WhenTheChefServerClassMethods

Defined in:
lib/chef_zero/rspec.rb

Instance Method Summary collapse

Instance Method Details

#acl_for(path, data) ⇒ Object


110
111
112
# File 'lib/chef_zero/rspec.rb', line 110

def acl_for(path, data)
  before(chef_server_options[:server_scope]) { acl_for(path, data) }
end

#client(name, data, &block) ⇒ Object


114
115
116
# File 'lib/chef_zero/rspec.rb', line 114

def client(name, data, &block)
  before(chef_server_options[:server_scope]) { client(name, data, &block) }
end

#container(name, data, &block) ⇒ Object


118
119
120
# File 'lib/chef_zero/rspec.rb', line 118

def container(name, data, &block)
  before(chef_server_options[:server_scope]) { container(name, data, &block) }
end

#cookbook(name, version, data = {}, options = {}, &block) ⇒ Object


122
123
124
125
126
# File 'lib/chef_zero/rspec.rb', line 122

def cookbook(name, version, data = {}, options = {}, &block)
  before(chef_server_options[:server_scope]) do
    cookbook(name, version, data, &block)
  end
end

#data_bag(name, data, &block) ⇒ Object


128
129
130
# File 'lib/chef_zero/rspec.rb', line 128

def data_bag(name, data, &block)
  before(chef_server_options[:server_scope]) { data_bag(name, data, &block) }
end

#environment(name, data, &block) ⇒ Object


132
133
134
# File 'lib/chef_zero/rspec.rb', line 132

def environment(name, data, &block)
  before(chef_server_options[:server_scope]) { environment(name, data, &block) }
end

#group(name, data, &block) ⇒ Object


136
137
138
# File 'lib/chef_zero/rspec.rb', line 136

def group(name, data, &block)
  before(chef_server_options[:server_scope]) { group(name, data, &block) }
end

#node(name, data, &block) ⇒ Object


140
141
142
# File 'lib/chef_zero/rspec.rb', line 140

def node(name, data, &block)
  before(chef_server_options[:server_scope]) { node(name, data, &block) }
end

#org_invite(*usernames) ⇒ Object


144
145
146
# File 'lib/chef_zero/rspec.rb', line 144

def org_invite(*usernames)
  before(chef_server_options[:server_scope]) { org_invite(*usernames) }
end

#org_member(*usernames) ⇒ Object


148
149
150
# File 'lib/chef_zero/rspec.rb', line 148

def org_member(*usernames)
  before(chef_server_options[:server_scope]) { org_member(*usernames) }
end

#organization(name, org = '{}', &block) ⇒ Object


106
107
108
# File 'lib/chef_zero/rspec.rb', line 106

def organization(name, org = '{}', &block)
  before(chef_server_options[:server_scope]) { organization(name, org, &block) }
end

#role(name, data, &block) ⇒ Object


152
153
154
# File 'lib/chef_zero/rspec.rb', line 152

def role(name, data, &block)
  before(chef_server_options[:server_scope]) { role(name, data, &block) }
end

#sandbox(name, data, &block) ⇒ Object


156
157
158
# File 'lib/chef_zero/rspec.rb', line 156

def sandbox(name, data, &block)
  before(chef_server_options[:server_scope]) { sandbox(name, data, &block) }
end

#user(name, data, &block) ⇒ Object


160
161
162
# File 'lib/chef_zero/rspec.rb', line 160

def user(name, data, &block)
  before(chef_server_options[:server_scope]) { user(name, data, &block) }
end