Sha256: 0e38e8bacfdf5ee704131490a74510d28b2cfa22f5fd1515e6fbaebe9564ab25
Contents?: true
Size: 945 Bytes
Versions: 17
Compression:
Stored size: 945 Bytes
Contents
# frozen_string_literal: true require 'rake/testtask' # Tests namespace :test do desc 'Test ForemanFogProxmox' Rake::TestTask.new(:foreman_fog_proxmox) do |t| test_dir = File.join(File.dirname(__FILE__), '../..', 'test') t.libs << ['test', test_dir] t.pattern = "#{test_dir}/**/*_test.rb" t.verbose = true t.warning = false end end namespace :foreman_fog_proxmox do task :rubocop do begin require 'rubocop/rake_task' RuboCop::RakeTask.new(:rubocop_foreman_fog_proxmox) do |task| task.patterns = ["#{ForemanFogProxmox::Engine.root}/app/**/*.rb", "#{ForemanFogProxmox::Engine.root}/lib/**/*.rb", "#{ForemanFogProxmox::Engine.root}/test/**/*.rb"] end rescue StandardError puts 'Rubocop not loaded.' end Rake::Task['rubocop_foreman_fog_proxmox'].invoke end end Rake::Task[:test].enhance ['test:foreman_fog_proxmox']
Version data entries
17 entries across 17 versions & 1 rubygems