Method: Recipes::FrontEnd#ask
- Defined in:
- lib/potassium/recipes/front_end.rb
#ask ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/potassium/recipes/front_end.rb', line 2 def ask frameworks = { vue: "Vue", angular: "Angular 2", none: "None" } framework = answer(:front_end) do frameworks.keys[ Ask.list("Which front-end framework are you going to use?", frameworks.values) ] end set :front_end, framework.to_sym end |