Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (29 sloc) 0.878 kB
#!/usr/bin/env ruby
# === COPYRIGHT:
# Copyright (c) 2005-2010 North Carolina State University
# Developed with funding for the National eXtension Initiative.
# === LICENSE:
# BSD(-compatible)
# see LICENSE file or view at http://about.extension.org/wiki/LICENSE
require 'getoptlong'
### Program Options
progopts = GetoptLong.new(
[ "--environment","-e", GetoptLong::OPTIONAL_ARGUMENT ]
)
@environment = 'production'
progopts.each do |option, arg|
case option
when '--environment'
@environment = arg
else
puts "Unrecognized option #{opt}"
exit 0
end
end
### END Program Options
if !ENV["RAILS_ENV"] || ENV["RAILS_ENV"] == ""
ENV["RAILS_ENV"] = @environment
end
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
# retire accounts that haven't been vouched for in 14 days
User.retire_ignored_account_requests
Jump to Line
Something went wrong with that request. Please try again.