Descobri isso, então vou postar um exemplo para cada um.
scripts do bash
require 'formula'
class MyBashScripts < Formula
homepage 'http://example.com'
head 'https://github.com/user/my-bash-scripts.git'
def install
bin.install 'script1', 'script2', 'script3'
end
end
scripts de rubi
require 'formula'
class MyRubyScripts < Formula
depends_on 'some-gem' => :ruby
homepage 'http://example.com'
head 'https://github.com/user/my-ruby-scripts.git'
def install
bin.install 'script1', 'scrip2', 'script3'
end
end