Sha256: 5b3710171c9a7c5f698733bbe35faa2a5d927b1cd13261a9a90af13e98a9ba0d
Contents?: true
Size: 742 Bytes
Versions: 20
Compression:
Stored size: 742 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "chronicle/etl" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. # (If you use this, don't forget to add pry to your Gemfile!) require "pry" Pry.start def reload!(print = true) puts 'Reloading ...' if print # Main project directory. root_dir = File.expand_path('..', __dir__) # Directories within the project that should be reloaded. reload_dirs = %w{lib} # Loop through and reload every file in all relevant project directories. reload_dirs.each do |dir| Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) } end # Return true when complete. true end
Version data entries
20 entries across 20 versions & 1 rubygems