Skip to content

Instantly share code, notes, and snippets.

@knowtheory
Created January 4, 2009 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knowtheory/42993 to your computer and use it in GitHub Desktop.
Save knowtheory/42993 to your computer and use it in GitHub Desktop.
Lucem:code ted$ thor -T
cnf
---
cnf:hello Say Hello
Lucem:code ted$ thor hello
The thor:runner namespace doesn't have a `hello' task
Lucem:code ted$ thor cnf:hello
There was no available namespace `cnf'.
Lucem:code ted$ thor cnf:hello
There was no available namespace `cnf'.
Lucem:code ted$ thor CNF:hello
Hello
class CNF < Thor
desc "hello", "Say Hello"
def hello
puts "Hello"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment