Sha256: 8959a0b17a246fc428dca3c82e5611e090978eec42230cdece0f46a834b13e28

Contents?: true

Size: 418 Bytes

Versions: 27

Compression:

Stored size: 418 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', '--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

27 entries across 27 versions & 1 rubygems

Version Path
octopress-3.0.0.rc.7 lib/octopress/commands/init.rb
octopress-3.0.0.rc.6 lib/octopress/commands/init.rb
octopress-3.0.0.rc.5 lib/octopress/commands/init.rb
octopress-3.0.0.rc.4 lib/octopress/commands/init.rb
octopress-3.0.0.rc.3 lib/octopress/commands/init.rb
octopress-3.0.0.rc.2 lib/octopress/commands/init.rb
octopress-3.0.0.rc.1 lib/octopress/commands/init.rb