Sha256: 49bc435693188b95f1c5c0e8b1f57ccfc30eaf6f73966fa5bcd65571cc3c19e7

Contents?: true

Size: 447 Bytes

Versions: 5

Compression:

Stored size: 447 Bytes

Contents

#! /usr/bin/env ruby

require 'shinmun'

case ARGV[0]
when 'init'
  Shinmun::Blog.init ARGV[1]

when 'post'
  Shinmun::Blog.new.create_post(:title => ARGV[1], :date => Date.today)

when 'page'
  Shinmun::Blog.new.create_post(:title => ARGV[1])

else
  puts "Usage:"
  puts "  shinmun init dir - creates a new blog"
  puts "  shinmun post 'Title of the post' - create a new post"
  puts "  shinmun page 'Title of the page' - create a new page"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
georgi-shinmun-0.3.1 bin/shinmun
georgi-shinmun-0.3.2 bin/shinmun
georgi-shinmun-0.3.3 bin/shinmun
georgi-shinmun-0.3.4 bin/shinmun
georgi-shinmun-0.3.5 bin/shinmun