Sha256: 1aa590c35eb016b1423be79d0dea24e369a1602a47a0caa42b3e2b2d32c12036
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
#!/usr/bin/env ruby 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" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-app-installer-0.1.5 | examples/typo |
rails-app-installer-0.2.0 | examples/typo |