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 <<EOF

Guard here! It looks like your project has a Gemfile, yet you are running
`guard` outside of Bundler. If this is your intent, feel free to ignore this
message. Otherwise, consider using `bundle exec guard` to ensure your
dependencies are loaded correctly.
(You can run `guard` with --no-bundler-warning to get rid of this message.)
EOF
end