Class: Radiant::Extension::Script::Help
- Defined in:
- lib/radiant/extension/script.rb
Instance Method Summary collapse
- #help ⇒ Object
- #info ⇒ Object
-
#initialize(args = []) ⇒ Help
constructor
A new instance of Help.
- #install ⇒ Object
- #uninstall ⇒ Object
Constructor Details
#initialize(args = []) ⇒ Help
Returns a new instance of Help.
296 297 298 299 300 |
# File 'lib/radiant/extension/script.rb', line 296 def initialize(args=[]) command = args.shift command = 'help' unless self.class.instance_methods(false).include?(command) send(command) end |
Instance Method Details
#help ⇒ Object
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 |
# File 'lib/radiant/extension/script.rb', line 302 def help $stdout.puts %{Usage: script/extension command [arguments] Available commands: #{command_names} For help on an individual command: script/extension help command You may install extensions from another registry by setting the REGISTRY_URL By default the REGISTRY_URL is set to http://ext.radiantcms.org Code for the registry application may be found at: http://github.com/radiant/radiant-extension-registry/ } end |
#info ⇒ Object
333 334 335 336 337 338 |
# File 'lib/radiant/extension/script.rb', line 333 def info $stdout.puts %{Usage: script/extension info extension_name Displays registry information about the extension. } end |
#install ⇒ Object
319 320 321 322 323 324 |
# File 'lib/radiant/extension/script.rb', line 319 def install $stdout.puts %{Usage: script/extension install extension_name Installs an extension from information in the global registry. } end |
#uninstall ⇒ Object
326 327 328 329 330 331 |
# File 'lib/radiant/extension/script.rb', line 326 def uninstall $stdout.puts %{Usage: script/extension uninstall extension_name Removes a previously installed extension from the current project. } end |