Sha256: 1fb1d4fb7737443e770a8edd4a5efd625cd7140b31c87939984ecbe83f0654f1
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
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_sequence stop backup_database pre_migrate_database copy_files freeze_rails create_default_config_files create_directories create_initial_database set_initial_port_number expand_template_files migrate sweep_cache save run_rails_tests start 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 def self.command(installer, *args) installer.sweep_cache end def self.help(installer) ['',"Sweep Typo's 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-3.99.3 | bin/typo |