Class: RailsDoctor::Adapters::DependencyFreshness

Inherits:
Base
  • Object
show all
Defined in:
lib/rails_doctor/adapters/dependency_freshness.rb

Constant Summary collapse

NAME =
"dependency_freshness"

Instance Attribute Summary

Attributes inherited from Base

#changed_files, #config, #profile, #project, #runner

Instance Method Summary collapse

Methods inherited from Base

#command, #initialize, #name, #run, #unavailable_reason

Constructor Details

This class inherits a constructor from RailsDoctor::Adapters::Base

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/rails_doctor/adapters/dependency_freshness.rb', line 8

def available?
  File.exist?(project.join("Gemfile.lock")) && project.command_available?("bundle")
end

#install_guidanceObject



12
13
14
# File 'lib/rails_doctor/adapters/dependency_freshness.rb', line 12

def install_guidance
  "Install Bundler and ensure Gemfile.lock is present before running dependency freshness checks."
end