class Guard::Bundler::Verify
Constants
- SYMLINK_NEEDED
Public Instance Methods
real_path(file)
click to toggle source
# File lib/guard/bundler/verify.rb, line 44 def real_path(file) verify!(file) Pathname.new(file).realpath.relative_path_from(Pathname.pwd).to_s end
uses_gemspec?(file)
click to toggle source
# File lib/guard/bundler/verify.rb, line 49 def uses_gemspec?(file) IO.read(file).lines.map(&:strip).grep(/^gemspec$/).any? end
verify!(file)
click to toggle source
# File lib/guard/bundler/verify.rb, line 34 def verify!(file) watchdirs = Guard::Compat.watched_directories gemfile = Pathname.new(file) config_dir = gemfile.realpath.dirname return if watchdirs.include?(config_dir) Compat::UI.error SYMLINK_NEEDED end