Runfile
require 'debug'
require 'kojo'
require 'kojo/version'
title "Kojo Developer Toolbelt"
summary "Runfile tasks for building the Kojo gem"
version Kojo::VERSION
import_gem 'runfile-tasks/gem'
import_gem 'runfile-tasks/docker', image: 'dannyben/kojo', version: Kojo::VERSION
import 'debug'
help "Generate example output files"
action :examples do
say 'g`invoke` examples'
dirs = Dir['examples/*'].select { |f| File.directory? f }
dirs.each do |folder|
say "g`process` #{folder}"
Dir.chdir folder do
if File.exist? 'runme'
system "./runme > output.txt 2>&1"
end
end
end
say 'g`done`'
end