require 'yaml' mappath = ARGV[0] outputpath = ARGV[1] panels = [] File.readlines(mappath).each do |line| line.match(/node name=\"(.*)\" parent=\"Panels\/(.*)\" instance/) do |m| panels << {"id" => m[2] + "/" + m[1]} end end File.write(outputpath, panels.to_yaml) k rel='vcs-git' href='https://git.fourisland.com/thoughts' title='thoughts Git repository'/>
about summary refs log tree commit diff stats
path: root/bin/rake
blob: d87d5f578104597c1d1b951b55942e37f8af1277 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby
begin
  load File.expand_path('../spring', __FILE__)
rescue LoadError => e
  raise unless e.message.include?('spring')
end
require_relative '../config/boot'
require 'rake'
Rake.application.run