Sha256: 462b587bf1e7e19f98cb6d78f2603ac225fe192edd773f3fd5d3633d4de0ac0f

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new do |t|
  t.rcov = false
end

namespace :parser do
  desc 'Generate the status parser with racc'
  task :status => [ 'lib/nagios_parser/status/parser.rb' ]

  desc 'Generate the object parser with racc'
  task :object => [ 'lib/nagios_parser/object/parser.rb' ]

  desc 'Generate the resource parser with racc'
  task :resource => [ 'lib/nagios_parser/resource/parser.rb' ]

  desc 'Generate the main config parser with racc'
  task :config => [ 'lib/nagios_parser/config/parser.rb' ]

  rule '.rb' => '.y' do |target|
    sh "racc -o #{target.name} #{target.source}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nagios_parser-1.2.1 Rakefile
nagios_parser-1.2.0 Rakefile