class Makimono::Command::New
Public Class Methods
source_root()
click to toggle source
# File lib/makimono/command/new.rb, line 12 def self.source_root File.expand_path('../../project_template', __dir__) end
Public Instance Methods
create_files()
click to toggle source
# File lib/makimono/command/new.rb, line 20 def create_files copy_file('.gitignore') copy_file('Gemfile') template('makimono.yml', { name: name }) copy_file('src/01-Title.md', "src/01-#{name.capitalize}.md") end
run_bundle_install()
click to toggle source
# File lib/makimono/command/new.rb, line 27 def run_bundle_install in_root do run('bundle install') end end
set_destination_root()
click to toggle source
# File lib/makimono/command/new.rb, line 16 def set_destination_root self.destination_root = name end