class Object

Public Instance Methods

run_scripts() click to toggle source
# File lib/tasks/install.rb, line 19
def run_scripts
        if File.exists?("install")
                Dir.glob("install/**/*") do |file|
                        puts "Running #{file}"
                        cmd = "rails runner #{file}"
                        `#{cmd}`
                end
        end
end