lib/cl/ctx.rb in cl-0.1.23 vs lib/cl/ctx.rb in cl-0.1.24
- old
+ new
@@ -7,14 +7,15 @@
extend Forwardable
def_delegators :ui, :puts, :stdout, :announce, :info, :notice, :warn,
:error, :success, :cmd
- attr_accessor :config, :ui
+ attr_accessor :config, :name, :ui
def initialize(name, opts = {})
@config = Config.new(name).to_h
@ui = opts[:ui] || Ui.new(self, opts)
+ @name = name
end
def abort(error, *strs)
ui.abort(error, *strs)
end