lib/octopress/commands/new.rb in octopress-3.0.0.rc.15 vs lib/octopress/commands/new.rb in octopress-3.0.0.rc.16
- old
+ new
@@ -1,18 +1,19 @@
module Octopress
class New < Command
def self.init_with_program(p)
p.command(:new) do |c|
c.syntax 'new <PATH>'
- c.description 'Creates a new Jekyll site scaffold in path.'
+ c.description 'Creates a new site with Jekyll and Octopress scaffolding at the specified path.'
c.option 'force', '--force', 'Force creation even if path already exists.'
c.option 'blank', '--blank', 'Creates scaffolding but with empty files.'
c.action do |args, options|
if args.empty?
c.logger.error "You must specify a path."
else
Jekyll::Commands::New.process(args, options)
+ Octopress::Scaffold.new(args, options).write
end
end
c.command(:page) do |c|
c.syntax 'page <PATH> [options]'