Class: Guard::Cli::Environments::Bundler

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/cli/environments/bundler.rb

Instance Method Summary collapse

Instance Method Details

#verifyObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/guard/cli/environments/bundler.rb', line 7

def verify
  return unless File.exist?("Gemfile")
  return if ENV["BUNDLE_GEMFILE"] || ENV["RUBYGEMS_GEMDEPS"]
  UI.info "\nGuard here! It looks like your project has a Gemfile, yet you are running\n`guard` outside of Bundler. If this is your intent, feel free to ignore this\nmessage. Otherwise, consider using `bundle exec guard` to ensure your\ndependencies are loaded correctly.\n(You can run `guard` with --no-bundler-warning to get rid of this message.)\n"
end