Class: Chef::Resource::MyDockerContainer
- Inherits:
-
Chef::Resource
- Object
- Chef::Resource
- Chef::Resource::MyDockerContainer
- Defined in:
- lib/docker_builder/cookbooks/docker-builder/libraries/resource_mycontainer.rb
Overview
Missing top-level class documentation comment
Instance Method Summary collapse
-
#initialize(name, run_context = nil) ⇒ MyDockerContainer
constructor
A new instance of MyDockerContainer.
Constructor Details
#initialize(name, run_context = nil) ⇒ MyDockerContainer
Returns a new instance of MyDockerContainer.
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/docker_builder/cookbooks/docker-builder/libraries/resource_mycontainer.rb', line 18 def initialize(name, run_context = nil) super @resource_name = :my_docker_container #@provider = Chef::Provider::RunitService #@supports = { restart: true, reload: true, status: true } #@action = :create #@allowed_actions = [:nothing, :start, :stop, :enable, :disable, :restart, :reload, :status, :once, :hup, :cont, :term, :kill, :up, :down, :usr1, :usr2, :create] end |