Class: Appear::Config
- Inherits:
-
Object
- Object
- Appear::Config
- Defined in:
- lib/appear/config.rb
Overview
all the adjustable options for a Appear::Instance
Instance Attribute Summary collapse
-
#edit_file ⇒ Boolean
Default false.
-
#editor ⇒ String?
Default nil.
-
#log_file ⇒ String?
if set, the Appear::Instance will log debug information to this file.
-
#record_runs ⇒ Boolean
Record everything executed by Runner service to spec/command_output.
-
#silent ⇒ Boolean
if false, the Appear::Instance will log debug information to STDERR.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
sets defaults.
Constructor Details
#initialize ⇒ Config
sets defaults
25 26 27 28 29 |
# File 'lib/appear/config.rb', line 25 def initialize self.silent = true self.record_runs = false self.edit_file = false end |
Instance Attribute Details
#edit_file ⇒ Boolean
Returns default false.
19 20 21 |
# File 'lib/appear/config.rb', line 19 def edit_file @edit_file end |
#editor ⇒ String?
Returns default nil.
22 23 24 |
# File 'lib/appear/config.rb', line 22 def editor @editor end |
#log_file ⇒ String?
if set, the Appear::Instance will log debug information to this file.
6 7 8 |
# File 'lib/appear/config.rb', line 6 def log_file @log_file end |
#record_runs ⇒ Boolean
Record everything executed by Runner service to spec/command_output. Intended for generating test cases.
16 17 18 |
# File 'lib/appear/config.rb', line 16 def record_runs @record_runs end |
#silent ⇒ Boolean
if false, the Appear::Instance will log debug information to STDERR.
10 11 12 |
# File 'lib/appear/config.rb', line 10 def silent @silent end |