Sha256: 50f26aeb262eb22000977a4d0a2987fb1e224d5868b76e0af7065e5bfef1d33e

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

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

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

    def execute(argv)
      cv_path = File.expand_path("commitversion", Narou.get_script_dir)
      commitversion = File.exist?(cv_path) ? File.read(cv_path) : `git describe --always`.strip + "(develop)"
      puts ::Version + " build " + commitversion
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
narou-1.7.2 lib/command/version.rb
narou-1.7.0 lib/command/version.rb