lib/spring/configuration.rb in spring-4.0.0 vs lib/spring/configuration.rb in spring-4.1.0
- old
+ new
@@ -1,10 +1,11 @@
require "spring/errors"
module Spring
class << self
- attr_accessor :application_root, :quiet
+ attr_accessor :application_root
+ attr_writer :quiet
def gemfile
require "bundler"
if /\s1.9.[0-9]/ === Bundler.ruby_scope.gsub(/[\/\s]+/,'')
@@ -48,9 +49,13 @@
end
end
def project_root_path
@project_root_path ||= find_project_root(Pathname.new(File.expand_path(Dir.pwd)))
+ end
+
+ def quiet
+ @quiet || ENV.key?('SPRING_QUIET')
end
private
def find_project_root(current_dir)