module Rails::Generators::Actions

def extify(name)


Add an extension to the given name based on the platform.
def extify(name)
  if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
    "#{name}.bat"
  else
    name
  end
end