Class: PoiseApplication::Resources::ApplicationTemplate::Resource

Inherits:
Chef::Resource::Template
  • Object
show all
Includes:
AppFileMixin
Defined in:
lib/poise_application/resources/application_template.rb

Overview

An ‘application_template` resource to manage Chef templates inside and Application cookbook deployment.

Examples:

application '/srv/myapp' do
  template 'myapp.conf' do
    source 'myapp.conf.erb'
  end
end

Since:

  • 5.1.0

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Resource

Returns a new instance of Resource.

Since:

  • 5.1.0



45
46
47
48
49
# File 'lib/poise_application/resources/application_template.rb', line 45

def initialize(*args)
  super
  # For older Chef.
  @resource_name = :application_template
end