Sha256: abbb9e3091dcef46ff348176873424b8f94cac2453c48a954e179b8e19e80526
Contents?: true
Size: 1.07 KB
Versions: 73
Compression:
Stored size: 1.07 KB
Contents
module Berkshelf class BaseFormatter class << self # # @macro formatter_method # @method $1(*args) # Create a formatter method for the declaration # def formatter_method(name) class_eval <<-EOH, __FILE__, __LINE__ + 1 def #{name}(*args) raise AbstractFunction, "##{name} must be implemented on \#{self.class.name}!" end EOH end end # UI methods formatter_method :deprecation formatter_method :error formatter_method :msg formatter_method :warn # Object methods formatter_method :fetch formatter_method :info formatter_method :install formatter_method :list formatter_method :outdated formatter_method :package formatter_method :search formatter_method :show formatter_method :skipping formatter_method :uploaded formatter_method :use formatter_method :vendor formatter_method :version # The cleanup hook is defined by subclasses and is called by the CLI. def cleanup_hook; end end end
Version data entries
73 entries across 73 versions & 1 rubygems