Sha256: 8ed515441c0e8a5d3347740dd2907a259cc3c8144b4d7e960b6f0c465aade16b
Contents?: true
Size: 712 Bytes
Versions: 9
Compression:
Stored size: 712 Bytes
Contents
namespace :mack do namespace :update do # desc "Renames thin.ru to rackup.ru and updates your thin.yml, if necessary." # task :rackup do # require 'fileutils' # ru = File.join(Mack.root, "config", "thin.ru") # if File.exists?(ru) # FileUtils.mv(ru, File.join(Mack.root, "config", "rackup.ru")) # end # thin_yml = File.join(Mack.root, "config", "thin.yml") # if File.exists?(thin_yml) # contents = File.open(thin_yml).read # contents.gsub!("thin.ru", "rackup.ru") # File.open(thin_yml, "w") do |f| # f.puts contents # end # end # end end end # alias_task "mack:update", "mack:update:rackup"
Version data entries
9 entries across 9 versions & 1 rubygems