Class: WSDirector::CLI::Configuration
- Inherits:
-
Object
- Object
- WSDirector::CLI::Configuration
- Defined in:
- lib/wsdirector/cli.rb
Instance Attribute Summary collapse
-
#colorize ⇒ Object
Returns the value of attribute colorize.
-
#json_scenario ⇒ Object
Returns the value of attribute json_scenario.
-
#scale ⇒ Object
Returns the value of attribute scale.
-
#scenario_path ⇒ Object
Returns the value of attribute scenario_path.
-
#subprotocol ⇒ Object
Returns the value of attribute subprotocol.
-
#sync_timeout ⇒ Object
Returns the value of attribute sync_timeout.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
-
#ws_url ⇒ Object
Returns the value of attribute ws_url.
Instance Method Summary collapse
- #colorize? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#reset! ⇒ Object
Restore to defaults.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 |
# File 'lib/wsdirector/cli.rb', line 15 def initialize reset! end |
Instance Attribute Details
#colorize ⇒ Object
Returns the value of attribute colorize.
12 13 14 |
# File 'lib/wsdirector/cli.rb', line 12 def colorize @colorize end |
#json_scenario ⇒ Object
Returns the value of attribute json_scenario.
12 13 14 |
# File 'lib/wsdirector/cli.rb', line 12 def json_scenario @json_scenario end |
#scale ⇒ Object
Returns the value of attribute scale.
12 13 14 |
# File 'lib/wsdirector/cli.rb', line 12 def scale @scale end |
#scenario_path ⇒ Object
Returns the value of attribute scenario_path.
12 13 14 |
# File 'lib/wsdirector/cli.rb', line 12 def scenario_path @scenario_path end |
#subprotocol ⇒ Object
Returns the value of attribute subprotocol.
12 13 14 |
# File 'lib/wsdirector/cli.rb', line 12 def subprotocol @subprotocol end |
#sync_timeout ⇒ Object
Returns the value of attribute sync_timeout.
12 13 14 |
# File 'lib/wsdirector/cli.rb', line 12 def sync_timeout @sync_timeout end |
#verbose ⇒ Object
Returns the value of attribute verbose.
12 13 14 |
# File 'lib/wsdirector/cli.rb', line 12 def verbose @verbose end |
#ws_url ⇒ Object
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
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 |