lib/screwcap/task.rb in screwcap-0.6.pre2 vs lib/screwcap/task.rb in screwcap-0.6.pre3
- old
+ new
@@ -126,9 +126,10 @@
end
def __build_commands(command_sets = [], _self = self)
commands = []
+ self.__commands = []
self.instance_eval(&self.__block)
if self.__options[:before]
self.__options[:before].each do |before|
before = command_sets.find {|cs| cs.__name.to_s == before.to_s}