Skip to content

Commit

Permalink
Add script to quickly regenerate examples
Browse files Browse the repository at this point in the history
  • Loading branch information
strzibny committed Jan 11, 2023
1 parent 0ace121 commit a5456a9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions regenerate.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Script to regenerate all examples
examples_directory = File.expand_path('../examples', __FILE__)
@examples = Dir.glob("#{examples_directory}/*.rb")

@examples.each do |example|
puts "Running #{example}"
Dir.chdir(examples_directory) do
`ruby #{example}`
end
end

0 comments on commit a5456a9

Please sign in to comment.