class Octopress::Init

Public Class Methods

init_with_program(p) click to toggle source
# File lib/octopress/commands/init.rb, line 3
def self.init_with_program(p)
  p.command(:init) do |c|
    c.syntax 'init <PATH> [options]'
    c.description "Add Octopress's default scaffolding to your site."
    c.option 'force', '-f', '--force', 'Overwrite files if they already exist.'

    c.action do |args, options|
      Scaffold.new(args, options).write
    end
  end
end