Sha256: e0a6488567d6ce9ce2084857ca3d0086452d84858ffe12aef748efeef708f421

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

puts __FILE__ if defined?(DEBUG)

desc "performs analyze commands"
task :analyze do Tasks.execute_task :analyze; end

class Analyze < Array
  def update
    if `gem list countloc`.include?("countloc (")
      FileUtils.mkdir("doc") unless File.exist?("doc")
      add_quiet "countloc -r * --html doc/countloc.html"
    end

    if defined?(DEBUG)
      puts
      puts "Analyze"
      pp self
      puts
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev-2.1.154 lib/tasks/analyze.rb