Sha256: 594c37e32a71379d70c26bebd351573967b5aa144f43a60e90c31c41df9b139d

Contents?: true

Size: 423 Bytes

Versions: 10

Compression:

Stored size: 423 Bytes

Contents

# -*- coding: utf-8 -*-
#
# Copyright 2013 whiteleaf. All rights reserved.
#

module Command
  class Version < CommandBase
    def self.oneline_help
      "バージョンを表示します"
    end

    def execute(argv)
      puts self.class.create_version_string
    end

    def self.create_version_string
      postfix = (Narou.commit_version ? "" : " (develop)")
      "#{Narou::VERSION}#{postfix}"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
narou-3.2.5.1 lib/command/version.rb
narou-3.2.5 lib/command/version.rb
narou-3.2.4 lib/command/version.rb
narou-3.2.3 lib/command/version.rb
narou-3.2.2 lib/command/version.rb
narou-3.2.1 lib/command/version.rb
narou-3.2.0.1 lib/command/version.rb
narou-3.2.0 lib/command/version.rb
narou-3.1.11 lib/command/version.rb
narou-3.1.10 lib/command/version.rb