lib/sprinkle/verify.rb in sprinkle-0.7.6 vs lib/sprinkle/verify.rb in sprinkle-0.7.6.1

- old
+ new

@@ -89,9 +89,20 @@ @delivery = nil self.instance_eval(&block) end + def runner(*cmds) + ActiveSupport::Deprecation.warn + "runner inside verify is depreciated and will removed in the future\n" + + "use runs_without_error instead." + runs_without_error(*cmds) + end + + def runs_without_error(*cmds) + @commands += cmds + end + def process(roles, pre = false) #:nodoc: description = @description.empty? ? " (#{@package.name})" : @description if logger.debug? logger.debug "#{@package.name}#{description} verification sequence: #{@commands.join('; ')} for roles: #{roles}\n"