require 'rake' require 'rubocop/rake_task' task default: %w[lint]; RuboCop::RakeTask.new(:lint) do |task| task.patterns = ['lib/**/*.rb', 'test/**/*.rb']; task.fail_on_error = false; end task :run, [:address, :custom_auth] do |t,args| args.with_defaults(:address => "http://localhost", :custom_auth => ""); ruby ('lib/fuzzer.rb discover ' + args.address + ' --custom-auth=' + args.custom_auth ); end