Module: AptControl::ConfigDSL
- Included in:
- AptControl::CLI::Root
- Defined in:
- lib/apt_control/cli.rb
Overview
Some class methods for defining config keys
Instance Method Summary collapse
Instance Method Details
#config(key, description, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/apt_control/cli.rb', line 9 def config(key, description, ={}) = {:required => true}.merge() configs << [key, description, ] end |
#configs ⇒ Object
14 15 16 |
# File 'lib/apt_control/cli.rb', line 14 def configs @configs ||= [] end |