Sha256: 3b635b0e49a0a303e125d89ad487c6895c382ab03e690a04675ba6236de2767a

Contents?: true

Size: 340 Bytes

Versions: 37

Compression:

Stored size: 340 Bytes

Contents

module RailsAudit
  class Audit
    def self.command(rails)
      self::COMMAND
    end

    def self.run(config)
      return true unless config[:enabled] && (config[:rails] || !self::RAILS)
      system "bundle exec #{command config[:rails]} #{config[:params]}"
    end

    def self.get_name
      name.split('::')[-1]
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
rails-audit-0.50.0 lib/rails-audit/audit.rb
rails-audit-0.49.0 lib/rails-audit/audit.rb
rails-audit-0.48.0 lib/rails-audit/audit.rb
rails-audit-0.47.0 lib/rails-audit/audit.rb
rails-audit-0.46.0 lib/rails-audit/audit.rb
rails-audit-0.45.0 lib/rails-audit/audit.rb
rails-audit-0.44.0 lib/rails-audit/audit.rb
rails-audit-0.43.0 lib/rails-audit/audit.rb
rails-audit-0.42.0 lib/rails-audit/audit.rb
rails-audit-0.41.0 lib/rails-audit/audit.rb
rails-audit-0.40.0 lib/rails-audit/audit.rb
rails-audit-0.39.0 lib/rails-audit/audit.rb
rails-audit-0.38.0 lib/rails-audit/audit.rb
rails-audit-0.37.0 lib/rails-audit/audit.rb
rails-audit-0.36.0 lib/rails-audit/audit.rb
rails-audit-0.35.0 lib/rails-audit/audit.rb
rails-audit-0.34.0 lib/rails-audit/audit.rb
rails-audit-0.33.0 lib/rails-audit/audit.rb
rails-audit-0.32.0 lib/rails-audit/audit.rb
rails-audit-0.31.0 lib/rails-audit/audit.rb