class TrustyCms::Extension::Script::Help

def command_names

def command_names
  (TrustyCms::Extension::Script.constants - ['Util']).sort.map {|n| n.to_s.underscore }.join(", ")
end

def help

def help
  $stdout.puts %{Usage:   script/extension command [arguments]
ble commands:
command_names}
lp on an individual command:
ript/extension help command
y install extensions from another registry by setting the REGISTRY_URL
ault the REGISTRY_URL is set to http://ext.radiantcms.org
or the registry application may be found at:
/github.com/radiant/radiant-extension-registry/
    }
end

def info

def info
  $stdout.puts %{Usage:    script/extension info extension_name
ys registry information about the extension.
  }
end

def initialize(args=[])

def initialize(args=[])
  command = args.shift
  command = 'help' unless self.class.instance_methods(false).collect {|im| im.to_s}.include?(command.to_s)
  send(command)
end

def install

def install
  $stdout.puts %{Usage:    script/extension install extension_name
ls an extension from information in the global registry.
  }
end

def uninstall

def uninstall
  $stdout.puts %{Usage:    script/extension uninstall extension_name
s a previously installed extension from the current project.
    }
end