I am defining a provider as below:
action :start do
...
end
action :stop do
...
end
action :restart do
...
end
Now instead of rewriting the implementation of stop
and start
in restart
, I would like to call action :stop
and then action :start
in action :restart
, like this:
action :restart do
action :stop
action :start
end
Is there a way to achieve this ?
EDIT - As mentioned in Coderanger answer, the solution is:
action :restart do
action_stop
action_start
end