Sha256: 14a0cf87d9e4c04c27fd63c98ae7b705f459b44d64bc917a9c659d6148f3d608
Contents?: true
Size: 407 Bytes
Versions: 21
Compression:
Stored size: 407 Bytes
Contents
require 'rebuild' module Rebuild class Runner def initialize(repo_path, primary_scripts) @repo_path = repo_path @primary_scripts = primary_scripts end def run script_paths.each do |path| puts "Running #{path}..." `cat #{path} | bash` end end private def script_paths Dir.glob(File.join(@repo_path, '*.sh')) end end end
Version data entries
21 entries across 21 versions & 1 rubygems