Class: Cosm::Command::Version

Inherits:
Base
  • Object
show all
Defined in:
lib/cosm/command/version.rb

Overview

display version

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

alias_command, extract_banner, extract_description, extract_help, extract_help_from_caller, extract_options, extract_summary, inherited, #initialize, method_added, namespace

Constructor Details

This class inherits a constructor from Cosm::Command::Base

Instance Method Details

#indexObject

version

show cosm client version

Example:

$ cosm version v0.0.1



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

def index
  validate_arguments!

  puts(Cosm::VERSION)
end