lib/hanzo.rb in hanzo-0.2.2 vs lib/hanzo.rb in hanzo-0.2.3
- old
+ new
@@ -8,10 +8,10 @@
require 'hanzo/version'
module Hanzo
def self.run(command)
print(command, :green)
- `#{command}`
+ Bundler.with_clean_env { `#{command}` }
end
def self.print(text, *colors)
colors = colors.map { |c| HighLine.const_get(c.to_s.upcase) }
HighLine.say HighLine.color(" #{text}", *colors)