Class: Turbot::Command::Version

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

Overview

Display version

Constant Summary

Constants included from Helpers

Helpers::DEFAULT_HOST

Instance Method Summary collapse

Methods included from Helpers

#api, #ask, #ask_for_password, #ask_for_password_on_windows, #delete_netrc_entry, #email_address_and_api_key, #error, #format_error, #host, #netrc_exists?, #netrc_path, #open_netrc, #save_netrc_entry, #styled_error, #turbot_api, #turbot_api_parameters

Constructor Details

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

Instance Method Details

#indexObject

version

Show the Turbot client's version.

Example:

$ turbot version turbot-gem/0.1.36 (x86_64-darwin14) ruby/2.2.0



14
15
16
17
# File 'lib/turbot/command/version.rb', line 14

def index
  validate_arguments!
  puts "#{Turbot::DEBUG_VERSION}"
end