scripts/script.rb in script-0.0.3 vs scripts/script.rb in script-0.0.4

- old
+ new

@@ -1,18 +1,16 @@ #!/usr/bin/env ruby require "script" -script = Script.new +Script.define do |s| + s.step("step 1") do + puts "Step 1" + puts "Completed" + raise + end -script.step("step 1") do - puts "Step 1" - puts "Completed" - raise + s.step("step 2") do + puts "Step 2" + puts "Completed" + end end - -script.step("step 2") do - puts "Step 2" - puts "Completed" -end - -script.run