Class: JekyllPageBoilerplate::Init

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll_page_boilerplate/init.rb

Class Method Summary collapse

Class Method Details

.runObject



6
7
8
9
# File 'lib/jekyll_page_boilerplate/init.rb', line 6

def self.run
  self.setup
  return 'Created _boilerplates/example.md'
end

.setupObject



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