Sha256: 952f67c2ed828b23b2c82e863ec228fcef934a35324e5f5dc3b790d1a7f10be3
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
require "thor/actions" require "thor/shell" require "thor/shell/basic" require "thor/shell/color" module Fontcustom module Actions def self.included(base) base.send :include, Thor::Actions end # TODO Currently not sure how Thor classes inherit `say_status` from Thor::Shell. # Using the instance variable as a workaround. def say_changed(status, changed) return unless opts[:verbose] message = changed.map do |file| file.gsub!(opts[:project_root], "") file = file[1..-1] if file[0] == "/" file end @shell.say_status status, message.join(" ") end def clear_file(file) File.open(file, "w") {} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fontcustom-1.1.0.pre | lib/fontcustom/actions.rb |