lib/sippy_cup/tasks.rb in sippy_cup-0.2.3 vs lib/sippy_cup/tasks.rb in sippy_cup-0.3.0
- old
+ new
@@ -5,11 +5,11 @@
desc "Compile the given scenario"
task :compile, :scenario do |t, args|
require File.expand_path(args[:scenario])
end
- desc "Run the scenario described by the given YAML file"
+ desc "Run the scenario described by the given manifest file"
task :run, :options_file do |t, args|
- options = YAML.load_file args[:options_file]
- SippyCup::Runner.new(options).run
+ scenario = SippyCup::Scenario.from_manifest File.read(args[:options_file])
+ SippyCup::Runner.new(scenario).run
end
end