I'm using octopress/octopress for my blog, and deployment with that is such a nice experience that I'd like to use octopress/deploy to deploy another jekyll site which I have - a pretty simple one which doesn't have any posts, and so wouldn't make use of the main functionality of the octopress cli.
I could just add the main octopress gem to my gemfile, but that feels a bit bloat-y so I've made a bin/deploy script so that I can use octopres/deploy in isolation:
#!/usr/bin/env ruby
require 'octopress-deploy'
Octopress::Deploy.push
This works but feels like a bit of a hack. Is octopress/deploy intended to be used in isolation at all, or is it just a way of isolating some of the code from octopress/octopress?
Did you consider giving this gem it's own executable commands? Would it ever make sense to extract Octopress::Command into a tiny gem which could be included in octopress/octopress, octopress/deploy and any other gems which might add commands to the octopress executable in future?
(p.s. thanks again for all your work on these tools)
I'm using
octopress/octopressfor my blog, and deployment with that is such a nice experience that I'd like to useoctopress/deployto deploy another jekyll site which I have - a pretty simple one which doesn't have any posts, and so wouldn't make use of the main functionality of the octopress cli.I could just add the main octopress gem to my gemfile, but that feels a bit bloat-y so I've made a
bin/deployscript so that I can useoctopres/deployin isolation:This works but feels like a bit of a hack. Is
octopress/deployintended to be used in isolation at all, or is it just a way of isolating some of the code fromoctopress/octopress?Did you consider giving this gem it's own executable commands? Would it ever make sense to extract
Octopress::Commandinto a tiny gem which could be included inoctopress/octopress,octopress/deployand any other gems which might add commands to the octopress executable in future?(p.s. thanks again for all your work on these tools)