Sha256: 53abd80ed85b64983a814ad5c67ab291b5affd247a3b525591faab9657abe011

Contents?: true

Size: 424 Bytes

Versions: 25

Compression:

Stored size: 424 Bytes

Contents

module Octopress
  class Init < Command
    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
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
octopress-3.0.0.rc.32 lib/octopress/commands/init.rb
octopress-3.0.0.rc.31 lib/octopress/commands/init.rb
octopress-3.0.0.rc.30 lib/octopress/commands/init.rb
octopress-3.0.0.rc.29 lib/octopress/commands/init.rb
octopress-3.0.0.rc.28 lib/octopress/commands/init.rb