Class: JekyllPageBoilerplate::Init
- Inherits:
-
Object
- Object
- JekyllPageBoilerplate::Init
- Defined in:
- lib/jekyll_page_boilerplate/init.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
6 7 8 9 |
# File 'lib/jekyll_page_boilerplate/init.rb', line 6 def self.run self.setup return 'Created _boilerplates/example.md' end |
.setup ⇒ Object
11 12 13 14 |
# File 'lib/jekyll_page_boilerplate/init.rb', line 11 def self.setup FileUtils.mkpath('_boilerplates') FileUtils.cp(File.join(__dir__, 'example.md'), '_boilerplates') end |