Sha256: ebf8b50236006b99e90e0a548fcd5aaecae9a34a9f0fafd9bf4cabc2db07a09d

Contents?: true

Size: 430 Bytes

Versions: 25

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

#
# 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

25 entries across 25 versions & 1 rubygems

Version Path
narou-3.9.1 lib/command/version.rb
narou-3.9.0 lib/command/version.rb
narou-3.8.2 lib/command/version.rb
narou-3.8.1 lib/command/version.rb
narou-3.8.0 lib/command/version.rb
narou-3.7.2 lib/command/version.rb
narou-3.7.1 lib/command/version.rb
narou-3.7.0 lib/command/version.rb
narou-3.6.0 lib/command/version.rb
narou-3.5.1 lib/command/version.rb
narou-3.5.0.1 lib/command/version.rb
narou-3.5.0 lib/command/version.rb
narou-3.4.8 lib/command/version.rb
narou-3.4.7.1 lib/command/version.rb
narou-3.4.7 lib/command/version.rb
narou-3.4.6.1 lib/command/version.rb
narou-3.4.6 lib/command/version.rb
narou-3.4.5 lib/command/version.rb
narou-3.4.3 lib/command/version.rb
narou-3.4.2 lib/command/version.rb