class PoiseApplicationPython::Resources::CeleryConfig::Resource

An ‘application_celery_config` resource to configure Celery workers.

@since 4.0.0 @provides application_celery_config @action deploy @example

application '/srv/myapp' do
  git '...'
  pip_requirements
  celery_config do
    options do
      broker_url '...'
    end
  end
  celeryd
end

Private Instance Methods

default_path() click to toggle source
# File lib/poise_application_python/resources/celery_config.rb, line 68
def default_path
  if ::File.directory?(name)
    ::File.join(name, 'celeryconfig.py')
  else
    name
  end
end