Class: Guyifeng::Command
- Inherits:
-
Thor
- Object
- Thor
- Guyifeng::Command
- Includes:
- Thor::Actions
- Defined in:
- lib/guyifeng/command.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/guyifeng/command.rb', line 9 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#new(name) ⇒ Object
19 20 21 22 23 |
# File 'lib/guyifeng/command.rb', line 19 def new(name) @app_name = name.capitalize @name = name directory("template", name) end |
#version ⇒ Object
14 15 16 |
# File 'lib/guyifeng/command.rb', line 14 def version puts Guyifeng::VERSION end |