Class: Command::Version

Inherits:
CommandBase show all
Defined in:
lib/command/version.rb

Instance Attribute Summary

Attributes inherited from CommandBase

#stream_io

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CommandBase

#disable_logging, #display_help!, #execute!, execute!, #force_change_settings_function, help, #hook_call, #initialize, #load_local_settings, #tagname_to_ids

Constructor Details

This class inherits a constructor from Command::CommandBase

Class Method Details

.create_version_stringObject



17
18
19
20
# File 'lib/command/version.rb', line 17

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

.oneline_helpObject



9
10
11
# File 'lib/command/version.rb', line 9

def self.oneline_help
  "バージョンを表示します"
end

Instance Method Details

#execute(argv) ⇒ Object



13
14
15
# File 'lib/command/version.rb', line 13

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