```ruby
module MetricFu
  BASE_DIRECTORY = ENV['CC_BUILD_ARTIFACTS'] || 'tmp/metric_fu'
  RAILS = File.exist?("config/environment.rb")
  
  if RAILS
    MetricFu::CODE_DIRS = ['app']
  else
    MetricFu::CODE_DIRS = ['lib']
  end
end

require File.join(File.dirname(__FILE__), 'metric_fu', 'md5_tracker')
require File.join(File.dirname(__FILE__), 'metric_fu', 'flog_reporter')
require File.join(File.dirname(__FILE__), 'tasks', 'metric_fu')```

Include both app and lib in rails apps
user
```ruby
module MetricFu
  BASE_DIRECTORY = ENV['CC_BUILD_ARTIFACTS'] || 'tmp/metric_fu'
  RAILS = File.exist?("config/environment.rb")
  
  if RAILS
    MetricFu::CODE_DIRS = ['app', 'lib']
  else
    MetricFu::CODE_DIRS = ['lib']
  end
end

require File.join(File.dirname(__FILE__), 'metric_fu', 'md5_tracker')
require File.join(File.dirname(__FILE__), 'metric_fu', 'flog_reporter')
require File.join(File.dirname(__FILE__), 'tasks', 'metric_fu')```
assistant