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

#initialize, 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