Top Level Namespace

Defined Under Namespace

Modules: Enumerable, Faker, Garcon, Garcun, Kernel, Mixlib, Uber Classes: Array, Binding, Boolean, Chef, Duration, FalseClass, GarconHash, Hash, Module, NilClass, Numeric, Object, Pathname, Random, String, Struct, Symbol, Time, TrueClass

Instance Method Summary collapse

Instance Method Details

#amazonundefined

Chef::Platform mapping for resource and providers

Returns:

  • (undefined)


135
136
137
138
139
# File 'lib/garcon/chef/provider/partial.rb', line 135

Chef::Platform.set(
  platform: :amazon,
  resource: :partial,
  provider:  Chef::Provider::Partial
)

#centosundefined

Chef::Platform mapping for resource and providers

Returns:

  • (undefined)


146
147
148
149
150
# File 'lib/garcon/chef/provider/partial.rb', line 146

Chef::Platform.set(
  platform: :centos,
  resource: :partial,
  provider:  Chef::Provider::Partial
)

#Garcon(opts = {}) ⇒ Object



103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/garcon/chef_inclusions.rb', line 103

def Garcon(opts = {})
  if opts.is_a?(Class)
    opts = { parent: opts }
  end

  mod = Module.new

  def mod.name
    super || 'Garcon'
  end

  mod.define_singleton_method(:included) do |base|
    super(base)
    base.class_exec { include Garcon }
    if base < Chef::Resource
      base.interpolate(opts[:node], opts[:namespace]) if opts[:interpolate]
      base.blender if opts[:blender]
    end
  end

  mod
end

#oracleundefined

Chef::Platform mapping for resource and providers

Returns:

  • (undefined)


157
158
159
160
161
# File 'lib/garcon/chef/provider/partial.rb', line 157

Chef::Platform.set(
  platform: :oracle,
  resource: :partial,
  provider:  Chef::Provider::Partial
)

#redhatundefined

Chef::Platform mapping for resource and providers

Returns:

  • (undefined)


168
169
170
171
172
# File 'lib/garcon/chef/provider/partial.rb', line 168

Chef::Platform.set(
  platform: :redhat,
  resource: :partial,
  provider:  Chef::Provider::Partial
)

#scientificundefined

Chef::Platform mapping for resource and providers

Returns:

  • (undefined)


179
180
181
182
183
# File 'lib/garcon/chef/provider/partial.rb', line 179

Chef::Platform.set(
  platform: :scientific,
  resource: :partial,
  provider:  Chef::Provider::Partial
)