Sha256: 8ab2adf33e92ca803c48a3042f4076d860b582b55a83c0475f7287bae6970f3a

Contents?: true

Size: 579 Bytes

Versions: 16

Compression:

Stored size: 579 Bytes

Contents

module MetricFu
  class MetricFlog < Metric

    def name
      :flog
    end

    def default_run_options
      { :dirs_to_flog => MetricFu::Io::FileSystem.directory('code_dirs'), :continue => true, :all => true, :quiet => true  }
    end

    def has_graph?
      true
    end

    def enable
      if MetricFu.configuration.mri?
        super
      else
        MetricFu.configuration.mf_debug("Flog is only available in MRI due to flog tasks")
      end
    end

    def activate
      activate_library 'flog'
      activate_library 'flog_cli'
      super
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
metric_fu-4.10.0 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.9.0 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.8.0 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.7.4 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.7.3 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.7.2 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.7.1 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.7.0 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.6.0 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.5.2 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.5.1 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.4.4 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.4.3 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.4.2 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.4.1 lib/metric_fu/metrics/flog/init.rb
metric_fu-4.4.0 lib/metric_fu/metrics/flog/init.rb