Class: Kia::Commands::Post
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Kia::Commands::Post
- Includes:
- Thor::Actions
- Defined in:
- lib/kia/commands/post.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/kia/commands/post.rb', line 10 def self.source_root File. "../../../templates/files/", File.dirname(__FILE__) end |
Instance Method Details
#copy_template ⇒ Object
14 15 16 |
# File 'lib/kia/commands/post.rb', line 14 def copy_template template "post.html.md", "source/posts/#{name}.html.md" end |