Sha256: 4c5f842491962ba4b49d3525b11e2641c6ef97ae798bab9e7d266261ab3f8acc

Contents?: true

Size: 711 Bytes

Versions: 2

Compression:

Stored size: 711 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'

task :default => :spec

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.3.0 Rakefile
nagios_parser-1.2.2 Rakefile