Class: Zend::Command::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/zend/command/base.rb

Direct Known Subclasses

Ticket

Instance Method Summary collapse

Instance Method Details

#apiObject



2
3
4
# File 'lib/zend/command/base.rb', line 2

def api
  Zend::Auth.api
end

#terminal_widthObject



6
7
8
9
10
11
# File 'lib/zend/command/base.rb', line 6

def terminal_width
  result = unix? ? dynamic_width : 80
  (result < 10) ? 80 : result
rescue
  80
end