Sha256: 4cf7431ad5fa488d7d64444e2313aeba585915736f64254af2c5a934f5118c03
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 Bytes
Contents
#!/usr/bin/env ruby require 'installer/rails-installer' class TypoInstaller < RailsInstaller application_name 'typo' support_location 'the Typo mailing list' rails_version '1.1.4' def install_post_hook sweep_cache end # Sweep the cache def sweep_cache Dir.chdir(install_directory) message "Cleaning out #{@@app_name.capitalize}'s cache" status = system("rake -s sweep_cache > /dev/null 2> /dev/null") end end class SweepCache < RailsInstaller::Command help "Sweep Typo's cache" def self.command(installer, *args) installer.sweep_cache end end # Installer program directory = ARGV[1] typo = TypoInstaller.new(directory) typo.message_proc = Proc.new do |msg| STDERR.puts " #{msg}" end typo.execute_command(*ARGV)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typo-4.0.0 | bin/typo |
typo-3.99.4 | bin/typo |