Class: WSDirector::CLI::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdirector/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



15
16
17
# File 'lib/wsdirector/cli.rb', line 15

def initialize
  reset!
end

Instance Attribute Details

#colorizeObject

Returns the value of attribute colorize.



12
13
14
# File 'lib/wsdirector/cli.rb', line 12

def colorize
  @colorize
end

#json_scenarioObject

Returns the value of attribute json_scenario.



12
13
14
# File 'lib/wsdirector/cli.rb', line 12

def json_scenario
  @json_scenario
end

#scaleObject

Returns the value of attribute scale.



12
13
14
# File 'lib/wsdirector/cli.rb', line 12

def scale
  @scale
end

#scenario_pathObject

Returns the value of attribute scenario_path.



12
13
14
# File 'lib/wsdirector/cli.rb', line 12

def scenario_path
  @scenario_path
end

#subprotocolObject

Returns the value of attribute subprotocol.



12
13
14
# File 'lib/wsdirector/cli.rb', line 12

def subprotocol
  @subprotocol
end

#sync_timeoutObject

Returns the value of attribute sync_timeout.



12
13
14
# File 'lib/wsdirector/cli.rb', line 12

def sync_timeout
  @sync_timeout
end

#verboseObject

Returns the value of attribute verbose.



12
13
14
# File 'lib/wsdirector/cli.rb', line 12

def verbose
  @verbose
end

#ws_urlObject

Returns the value of attribute ws_url.



12
13
14
# File 'lib/wsdirector/cli.rb', line 12

def ws_url
  @ws_url
end

Instance Method Details

#colorize?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/wsdirector/cli.rb', line 19

def colorize?
  colorize == true
end

#reset!Object

Restore to defaults



24
25
26
27
28
# File 'lib/wsdirector/cli.rb', line 24

def reset!
  @scale = 1
  @colorize = $stdout.tty?
  @sync_timeout = 5
end