Sha256: 0ccfdb07918fa505f53caeff4dde0fc818d1e27a28a554c62658e56e2f13334e
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 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.1 | lib/command/version.rb |
narou-1.6.4 | lib/command/version.rb |