Skip to content

Commit cf2bd0b

Browse files
author
Cameron Johnston
committed
COOK-2747 rename celeryevents parameter to enable_events
1 parent f225c14 commit cf2bd0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

providers/celery.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@
6262

6363
if new_resource.celerycam
6464
# turn on events automatically, if we are going to run celerycam
65-
new_resource.celeryevents(true)
65+
new_resource.enable_events(true)
6666
end
6767

6868
cmds = {}
6969
if new_resource.celeryd
7070
case new_resource.queues
7171
when Array
72-
cmds[:celeryd] = "celeryd -Q #{new_resource.queues.join(',')} #{new_resource.celeryevents ? "-E" : ""}"
72+
cmds[:celeryd] = "celeryd -Q #{new_resource.queues.join(',')} #{new_resource.enable_events ? "-E" : ""}"
7373
when NilClass
74-
cmds[:celeryd] = "celeryd #{new_resource.celeryevents ? "-E" : ""}"
74+
cmds[:celeryd] = "celeryd #{new_resource.enable_events ? "-E" : ""}"
7575
end
7676
end
7777
cmds[:celerybeat] = "celerybeat" if new_resource.celerybeat

resources/celery.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
attribute :celerybeat, :kind_of => [TrueClass, FalseClass], :default => false
2828
attribute :celerycam, :kind_of => [TrueClass, FalseClass], :default => false
2929
attribute :camera_class, :kind_of => [String, NilClass], :default => nil
30-
attribute :celeryevents, :kind_of => [TrueClass, FalseClass], :default => false
30+
attribute :enable_events, :kind_of => [TrueClass, FalseClass], :default => false
3131
attribute :environment, :kind_of => [Hash], :default => {}
3232
attribute :queues, :kind_of => [Array,NilClass], :default => nil
3333

0 commit comments

Comments
 (0)