Sha256: 0d3f49591b4593a19adb17b44102cf13765c5d9ad4c692d22f25846c58695a1e

Contents?: true

Size: 958 Bytes

Versions: 11

Compression:

Stored size: 958 Bytes

Contents

# frozen_string_literal: true

require 'riemann/tools/version'
require 'bundler/gem_tasks'
require 'github_changelog_generator/task'

GitHubChangelogGenerator::RakeTask.new :changelog do |config|
  config.user = 'riemann'
  config.project = 'riemann-tools'
  config.exclude_labels = ['skip-changelog']
  config.future_release = "v#{Riemann::Tools::VERSION}"
end

desc 'Recursively build all gems'
task :rbuild do
  Dir.glob('tools/**') do |dir|
    Dir.chdir(dir)
    sh 'rake gem'
    Dir.chdir('../..')
  end
end

task build: :gen_parser

desc 'Generate parsers'
task gen_parser: [
  'lib/riemann/tools/mdstat_parser.tab.rb',
  'lib/riemann/tools/uptime_parser.tab.rb',
]

file 'lib/riemann/tools/mdstat_parser.tab.rb' => 'lib/riemann/tools/mdstat_parser.y' do
  sh 'racc -S lib/riemann/tools/mdstat_parser.y'
end

file 'lib/riemann/tools/uptime_parser.tab.rb' => 'lib/riemann/tools/uptime_parser.y' do
  sh 'racc -S lib/riemann/tools/uptime_parser.y'
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
riemann-tools-1.9.1 Rakefile
riemann-tools-1.9.0 Rakefile
riemann-tools-1.8.2 Rakefile
riemann-tools-1.8.1 Rakefile
riemann-tools-1.8.0 Rakefile
riemann-tools-1.7.1 Rakefile
riemann-tools-1.7.0 Rakefile
riemann-tools-1.6.0 Rakefile
riemann-tools-1.5.0 Rakefile
riemann-tools-1.4.0 Rakefile
riemann-tools-1.3.0 Rakefile