Sha256: e690f155798c6977e30ce498e4cdfaf6802a78b7ef25b0a9ef23052b9eeb140d

Contents?: true

Size: 682 Bytes

Versions: 3

Compression:

Stored size: 682 Bytes

Contents

namespace :engine do
  desc "Report code statistics (KLOCs, etc) from the application"
  task :stats do
    ENGINE_STATS_DIRECTORIES = [
      %w(Controllers        app/controllers),
      %w(Helpers            app/helpers),
      %w(Models             app/models),
      %w(Libraries          lib/),
      %w(APIs               app/apis),
      %w(Integration\ tests test/integration),
      %w(Functional\ tests  test/functional),
      %w(Unit\ tests        test/unit)
    ].collect { |name, dir| [ name, "#{ENGINE_PATH}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }

    require 'rails/code_statistics'
    CodeStatistics.new(*ENGINE_STATS_DIRECTORIES).to_s
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openshift-origin-console-1.3.4 lib/tasks/stats.rake
openshift-origin-console-1.3.3 lib/tasks/stats.rake
openshift-origin-console-1.3.2 lib/tasks/stats.rake