Class: Command::Version
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
Class Method Details
.create_version_string ⇒ Object
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_help ⇒ Object
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
|