Module: Gunter::View::Text
- Defined in:
- lib/gunter/view/text.rb
Overview
Gunter text view template render
Class Method Summary collapse
Class Method Details
.gunter_version(value) ⇒ Object
8 9 10 |
# File 'lib/gunter/view/text.rb', line 8 def gunter_version(value) puts "gunter version: #{value}" end |
.template_added(value) ⇒ Object
12 13 14 |
# File 'lib/gunter/view/text.rb', line 12 def template_added(value) puts "Template #{value[:name]} added!" end |
.templates(values) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/gunter/view/text.rb', line 16 def templates(values) puts "Available templates:\n\n" values.each do |name, template| puts <<~OUT #{name} repository: #{template[:repo]} created at: #{template[:created_at].strftime('%Y-%m-%d %H:%M:%S')} OUT end end |