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.12.pre.1 lib/octopress/commands/init.rb
octopress-3.0.11 lib/octopress/commands/init.rb
octopress-3.0.10 lib/octopress/commands/init.rb
octopress-3.0.9 lib/octopress/commands/init.rb
octopress-3.0.8 lib/octopress/commands/init.rb
octopress-3.0.7 lib/octopress/commands/init.rb
octopress-3.0.6 lib/octopress/commands/init.rb
octopress-3.0.5 lib/octopress/commands/init.rb
octopress-3.0.4 lib/octopress/commands/init.rb
octopress-3.0.3.alpha.2 lib/octopress/commands/init.rb
octopress-3.0.3.alpha.1 lib/octopress/commands/init.rb
octopress-3.0.3.alpha.0 lib/octopress/commands/init.rb
octopress-3.0.2 lib/octopress/commands/init.rb
octopress-3.0.1 lib/octopress/commands/init.rb
octopress-3.0.0 lib/octopress/commands/init.rb
octopress-3.0.0.rc.37 lib/octopress/commands/init.rb
octopress-3.0.0.rc.36 lib/octopress/commands/init.rb
octopress-3.0.0.rc.35 lib/octopress/commands/init.rb
octopress-3.0.0.rc.34 lib/octopress/commands/init.rb
octopress-3.0.0.rc.33 lib/octopress/commands/init.rb