Class: PoiseApplication::Resources::Application::Provider

Inherits:
Chef::Provider
  • Object
show all
Includes:
Poise
Defined in:
lib/poise_application/resources/application.rb

Overview

Provider for ‘application`.

See Also:

Since:

  • 5.0.0

Instance Method Summary collapse

Instance Method Details

#action_deployvoid

This method returns an undefined value.

‘deploy` action for `application`. Creates the application base folder.

Since:

  • 5.0.0



201
202
203
204
205
206
207
208
209
# File 'lib/poise_application/resources/application.rb', line 201

def action_deploy
  notifying_block do
    directory new_resource.path do
      owner new_resource.owner
      group new_resource.group
      mode '755'
    end
  end
end

#action_reloadvoid

This method returns an undefined value.

‘reload` action for `application`. Proxies to subresources.

Since:

  • 5.0.0



235
236
237
# File 'lib/poise_application/resources/application.rb', line 235

def action_reload
  proxy_action(:reload)
end

#action_restartvoid

This method returns an undefined value.

‘restart` action for `application`. Proxies to subresources.

Since:

  • 5.0.0



228
229
230
# File 'lib/poise_application/resources/application.rb', line 228

def action_restart
  proxy_action(:restart)
end

#action_startvoid

This method returns an undefined value.

‘start` action for `application`. Proxies to subresources.

Since:

  • 5.0.0



214
215
216
# File 'lib/poise_application/resources/application.rb', line 214

def action_start
  proxy_action(:start)
end

#action_stopvoid

This method returns an undefined value.

‘stop` action for `application`. Proxies to subresources.

Since:

  • 5.0.0



221
222
223
# File 'lib/poise_application/resources/application.rb', line 221

def action_stop
  proxy_action(:stop)
end