Skip to content

Instantly share code, notes, and snippets.

@joseivanlopez
Last active August 9, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseivanlopez/5d6ad9d2d3abf165abda46e61c2a7aa2 to your computer and use it in GitHub Desktop.
Save joseivanlopez/5d6ad9d2d3abf165abda46e61c2a7aa2 to your computer and use it in GitHub Desktop.
def sequence_hash
{
"ws_start" => "delete_filesystem",
"delete_filesystem" => { next: next_step },
"type" => { next: "size" },
"size" => { next: new_blk_device_step1, finish: :finish }
}.merge(new_blk_device_steps)
end
def next_step
if cond
controller.thing = foo
skip_back :type
:size
else
:type
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment