class Mudguard::Infrastructure::Rake::Task
Public Class Methods
new(project_dir: Dir.pwd)
click to toggle source
Calls superclass method
# File lib/mudguard/infrastructure/rake/task.rb, line 14 def initialize(project_dir: Dir.pwd) super() @project_dir = project_dir desc "Run Mudguard" task(:mudguard) do view = Mudguard::Infrastructure::Cli::View.new notification = Mudguard::Infrastructure::Cli::NotificationAdapter.new(view: view) ok = Application.check(@project_dir, notification) abort unless ok end end