lib/saber/task/generate.rb in saber-1.0.1 vs lib/saber/task/generate.rb in saber-1.0.2
- old
+ new
@@ -18,9 +18,10 @@
require "saber/tracker/#{tracker_name}" if !args.empty?
template_file = find_in_source_paths("#{tracker_name}/#{type}.yml")
dest = "#{filename}.yml"
if !args.empty? and Tracker[tracker_name].can_populate?(type)
+ require "yaml"
populate = {}
data = YAML.load_file(template_file)
tracker = Tracker[tracker_name].new
tracker.login