Class: Screengem::DampenConfigurationGenerator

Inherits:
Object
  • Object
show all
Includes:
PrimitiveKey
Defined in:
lib/screengem/dampen_configuration_generator.rb

Overview

Knows how to generate the sample dampen configuration.

Constant Summary collapse

DEFAULT_SLEEP =

Seconds to sleep after executing a question or task.

2

Instance Method Summary collapse

Methods included from PrimitiveKey

#primitive_key

Instance Method Details

#generateObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/screengem/dampen_configuration_generator.rb', line 11

def generate
  configuration = empty_configuration

  default_configuration = configuration["default"]

  default_configuration["questions"] = all_questions
  default_configuration["tasks"] = all_tasks

  configuration
end