Moved code to a more logical home.
This commit is contained in:
@@ -3,22 +3,6 @@ require 'pathname'
|
||||
module Homesick
|
||||
# Various utility methods that are used by Homesick
|
||||
module Utils
|
||||
QUIETABLE = [:say_status].freeze
|
||||
|
||||
PRETENDABLE = [:system].freeze
|
||||
|
||||
QUIETABLE.each do |method_name|
|
||||
define_method(method_name) do |*args|
|
||||
super(*args) unless options[:quiet]
|
||||
end
|
||||
end
|
||||
|
||||
PRETENDABLE.each do |method_name|
|
||||
define_method(method_name) do |*args|
|
||||
super(*args) unless options[:pretend]
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def home_dir
|
||||
|
||||
Reference in New Issue
Block a user