Sha256: d676023bd87b81ca3aa09f0cdeea6bebd5a91507646ebabca477601a0fba0fc5

Contents?: true

Size: 924 Bytes

Versions: 2

Compression:

Stored size: 924 Bytes

Contents

#
# Blogaze
# Copyright (C) 2011-2013 Jack Polgar
#
# Blogaze is released under the BSD 3-clause license.
# @license http://opensource.org/licenses/BSD-3-Clause
#

module Blogaze
  module Bin
    class Default < Shebang::Command
      command :default
      banner  'Blogaze is a simple blog powered by Ramaze.'
      usage   'blogaze [COMMAND]'

      o :h, :help   , 'Shows this help message'  , :method => :help
      o :v, :version, 'Shows the current version', :method => :version

      ##
      # Lists commands.
      #
      def initialize
        super
        puts "Commands"
        puts "  blogaze create [NAME] - Create a Blogaze installation in [NAME] directory."
        puts
      end

      ##
      # Shows help
      #
      def index
        help
      end

      protected

      ##
      # Shows version
      #
      def version
        puts Blogaze::VERSION
        exit
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blogaze-0.0.2 lib/blogaze/bin/default.rb
blogaze-0.0.1 lib/blogaze/bin/default.rb