Skip to content
Snippets Groups Projects
Commit 0562b02b authored by Alessio Caiazza's avatar Alessio Caiazza
Browse files

Do not use %i() in state machines

parent 3f261a49
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -13,15 +13,15 @@ module Clusters
state :installed, value: 3
 
event :make_scheduled do
transition %i(installable errored) => :scheduled
transition [:installable, :errored] => :scheduled
end
 
event :make_installing do
transition %i(scheduled) => :installing
transition [:scheduled] => :installing
end
 
event :make_installed do
transition %i(installing) => :installed
transition [:installing] => :installed
end
 
event :make_errored do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment