Class: PoiseApplication::Resources::ApplicationFile::Resource

Inherits:
Chef::Resource::File
  • Object
show all
Defined in:
lib/poise_application/resources/application_file.rb

Overview

An application_file resource to manage Chef files inside and Application cookbook deployment.

Examples:

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

Since:

  • 5.1.0

Provides:

  • application_file

Actions:

  • create

  • create_if_missing

  • delete

  • touch

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_file.rb', line 45

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