Created
January 16, 2011 19:39
-
-
Save leafstorm/782073 to your computer and use it in GitHub Desktop.
Example Thor file for testing using Gists with Thor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hello < Thor | |
include Thor::Actions | |
desc "hello NAME", "says hello to the given NAME" | |
def hello (name="World") | |
say "Hello, #{name}! It's nice to meet you!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment