Sha256: 2f01cf0a2614a5ce6ea7973b480f20f149a24d46f3036b823d428b72055503d4

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

require 'access_lint'

module AccessLint
  class Audit
    RUNNER_PATH = File.expand_path("../../../vendor/access-lint/bin/auditor.js", __FILE__)

    def initialize(target)
      @target = target
    end

    def run
      create_report
    end

    private

    def create_report
      %x( phantomjs #{RUNNER_PATH} #{@target})
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
access_lint-0.0.4 lib/access_lint/audit.rb
access_lint-0.0.3 lib/access_lint/audit.rb
access_lint-0.0.2 lib/access_lint/audit.rb