Sha256: 341693f582f3ee7fad91c4716d2cb9d60fb5dcefd5e78aaff16fb8e6879b6e96
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' RAILS_BASE=File.join(File.dirname(__FILE__),"..") CONFIGDIR=File.join(RAILS_BASE,"config") require File.join(CONFIGDIR,"boot") require File.join(CONFIGDIR,"environment") require 'application' admin = SugoiAdminController.new command = ARGV.shift.gsub(/-/,"_") request = ActionController::CommandlineRequest.new(command, *ARGV) response = ActionController::CommandlineResponse.new begin admin.process(request, response) puts response.body rescue UnknownAction => e puts "sugoi-admin: Command error: #{e}" exit 1 rescue RuntimeError => e puts "sugoi-admin: Error: #{e}" exit 1 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sugoi-mail-0.3.0 | bin/sugoi-admin |
sugoi-mail-0.3.2 | bin/sugoi-admin |