lib/hanzo.rb in hanzo-0.4.5 vs lib/hanzo.rb in hanzo-0.5

- old
+ new

@@ -53,9 +53,18 @@ end def self.ask(question, &blk) HighLine.ask "-----> #{question} ", &blk end + + def self.config + return YAML.load_file('.hanzo.yml') if File.exist?('.hanzo.yml') + + Hanzo.print 'Cannot locate .hanzo.yml' + Hanzo.print 'For more information, please read https://github.com/mirego/hanzo' + + exit + end end class String def unindent gsub(/^#{scan(/^\s*/).min_by { |l| l.length }}/, '')