octopress / deploy

Deployment for Octopress and Jekyll blogs.
MIT License
75 stars 23 forks source link

Add command: `octopress deploy` #3

Closed parkr closed 10 years ago

parkr commented 10 years ago

Give Octopress some command-line-based deployment :heart:!

Relevant issue on octopress/octopress: https://github.com/octopress/octopress/issues/4

Add octopress-deploy to your Gemfile in the :octopress group and it's accessible!

imathis commented 10 years ago

Hmm this is extending Octopress::Command. This means that the gem now requires the Octopress CLI. It would be nice if we could not make that a requirement.

parkr commented 10 years ago

@imathis How come? It's the best way to enforce a common interface for all commands, and it uses some magic to collect all commands so we can instantiate them.

The idea is that the Octopress CLI will always be available when octopress-deploy's command is included.

imathis commented 10 years ago

Note the commit I just added 70c264a. It just makes it so that the gem doesn't break if you try to use it without the CLI installed. I can imagine that some people might want to be able to use this in a Rakefile without the CLI.