Class: Depec::Initializer
- Inherits:
-
Object
- Object
- Depec::Initializer
- Defined in:
- lib/depec/initializer.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/depec/initializer.rb', line 3 def config @config end |
Instance Method Details
#processAnswers(answers) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/depec/initializer.rb', line 9 def processAnswers(answers) Depec::Configuration.call({ targets: { ruby: { use: answers[:ruby], version: answers[:ruby_version], bundler_version: answers[:bundler_version], gem_version: answers[:gem_version] }, node: { use: answers[:node], version: answers[:node_version], npm_version: answers[:npm_version] }, circle_ci: { use: answers[:circle_ci], images: answers[:circle_ci_images] }, github_actions: { use: answers[:github_actions] } } }).to_h end |