Sha256: 819bddb51e49f7b60f8ae6e141eecb56d702063881d0b1888b138f2315bfdc57

Contents?: true

Size: 707 Bytes

Versions: 2

Compression:

Stored size: 707 Bytes

Contents

# Tasks
namespace :foreman_host_rundeck do
  namespace :example do
    desc 'Example Task'
    task :task => :environment do
      # Task goes here
    end
  end
end

# Tests
namespace :test do
  desc "Test ForemanHostRundeck"
  Rake::TestTask.new(:foreman_host_rundeck) do |t|
    test_dir = File.join(File.dirname(__FILE__), '../..', 'test')
    t.libs << ["test",test_dir]
    t.pattern = "#{test_dir}/**/*_test.rb"
    t.verbose = true
  end
end

Rake::Task[:test].enhance do
  Rake::Task['test:foreman_host_rundeck'].invoke
end

load 'tasks/jenkins.rake'
if Rake::Task.task_defined?(:'jenkins:setup')
  Rake::Task["jenkins:unit"].enhance do
    Rake::Task['test:foreman_host_rundeck'].invoke
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_host_rundeck-0.0.3 lib/tasks/foreman_host_rundeck_tasks.rake
foreman_host_rundeck-0.0.2 lib/tasks/foreman_host_rundeck_tasks.rake