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

Version Path
foreman_fog_proxmox-0.16.3 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.17.1 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.17.0 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.16.2 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.16.1 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.16.0 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.15.1 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.15.0 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.14.3 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.14.2 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.14.1 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.14.0 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.13.4 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.13.3 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.13.2 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.13.1 lib/tasks/foreman_fog_proxmox_tasks.rake
foreman_fog_proxmox-0.13.0 lib/tasks/foreman_fog_proxmox_tasks.rake