lib/cl/ctx.rb in cl-0.1.12 vs lib/cl/ctx.rb in cl-0.1.13

- old
+ new

@@ -11,16 +11,14 @@ attr_accessor :config, :ui def initialize(name, opts = {}) @config = Config.new(name).to_h - @ui = Ui.new(self, opts) + @ui = opts[:ui] || Ui.new(self, opts) end - def abort(str) - fail(str) if test? - ui.error(str) - exit 1 + def abort(error, *strs) + ui.abort(error, *strs) end def test? ENV['ENV'] == 'test' end