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.27 lib/octopress/commands/init.rb
octopress-3.0.0.rc.26 lib/octopress/commands/init.rb
octopress-3.0.0.rc.25 lib/octopress/commands/init.rb
octopress-3.0.0.rc.24 lib/octopress/commands/init.rb
octopress-3.0.0.rc.23 lib/octopress/commands/init.rb
octopress-3.0.0.rc.22 lib/octopress/commands/init.rb
octopress-3.0.0.rc.21 lib/octopress/commands/init.rb
octopress-3.0.0.rc.20 lib/octopress/commands/init.rb
octopress-3.0.0.rc.19 lib/octopress/commands/init.rb
octopress-3.0.0.rc.18 lib/octopress/commands/init.rb
octopress-3.0.0.rc.17 lib/octopress/commands/init.rb
octopress-3.0.0.rc.16 lib/octopress/commands/init.rb
octopress-3.0.0.rc.15 lib/octopress/commands/init.rb
octopress-3.0.0.rc.14 lib/octopress/commands/init.rb
octopress-3.0.0.rc.13 lib/octopress/commands/init.rb
octopress-3.0.0.rc.12 lib/octopress/commands/init.rb
octopress-3.0.0.rc.11 lib/octopress/commands/init.rb
octopress-3.0.0.rc.10 lib/octopress/commands/init.rb
octopress-3.0.0.rc.9 lib/octopress/commands/init.rb
octopress-3.0.0.rc.8 lib/octopress/commands/init.rb