Sha256: fbf6136bb39d448e81ff7bbb4365c913db94c0c4e257faf7481148c72eeb5993
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'rails-installer' class TypoInstaller < RailsInstaller application_name 'typo' support_location 'the Typo mailing list' rails_version '1.1.6' def install_post_hook sweep_cache end # Sweep the cache def sweep_cache in_directory install_directory do message "Cleaning out #{@@app_name.capitalize}'s cache" status = system_silently("rake -s sweep_cache") end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typo-4.0.3 | bin/typo |