Sha256: c9e69b4b5e6e2b2287ab89b9f95e70dd0072fd9c538f1539e429175b5402be1f

Contents?: true

Size: 647 Bytes

Versions: 7

Compression:

Stored size: 647 Bytes

Contents

namespace :dsl do
  desc "Generate JmeterPerf::DSL methods"
  task :generate do
    require_relative "../lib/jmeter_perf/helpers/dsl_generator"
    puts "Generating DSL methods..."
    # Rake tasks would be ran from root of the project
    lib_dir = Pathname(".").expand_path.join("lib")
    gem_dir = lib_dir.join("jmeter_perf")
    dsl_dir = gem_dir.join("dsl")
    idl_xml_path = lib_dir.join("specifications/idl.xml")

    generator = JmeterPerf::Helpers::DSLGenerator.new(
      dsl_dir: dsl_dir,
      idl_xml_path: idl_xml_path,
      document_dsl: false
    )

    generator.generate

    puts "Finished generating DSL methods."
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jmeter_perf-1.1.1 tasks/dsl.rake
jmeter_perf-1.1.0 tasks/dsl.rake
jmeter_perf-1.0.10 tasks/dsl.rake
jmeter_perf-1.0.9 tasks/dsl.rake
jmeter_perf-1.0.8 tasks/dsl.rake
jmeter_perf-1.0.7 tasks/dsl.rake
jmeter_perf-1.0.6 tasks/dsl.rake