Skip to content

Instantly share code, notes, and snippets.

@cameroncox
Created July 22, 2008 00:45
Show Gist options
  • Save cameroncox/522 to your computer and use it in GitHub Desktop.
Save cameroncox/522 to your computer and use it in GitHub Desktop.
require 'thor'
module Gazette
class Application < Thor
desc "init", "Creates a new git managed blog in the current working directory"
def init
Application::Init.run
end # init
desc "post", "Post a new blog article"
def post
Application::Post.run
end # post
desc "build", "Builds new posts, and will rebuild any indexes"
def build
Application::Build.run
end # build
desc "deploy", "Deploy the blog either via scp or rsync+ssh"
def deploy
Application::Deploy.run
end # deploy
end # Application
end # Gazette
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment