Class: Mayaml::MuttConfigsStatic::Handler

Inherits:
Object
  • Object
show all
Includes:
Mainapp::Component
Defined in:
lib/mayaml/mutt_configs_static/handler.rb

Instance Method Summary collapse

Instance Method Details

#execute(prefix_path) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/mayaml/mutt_configs_static/handler.rb', line 12

def execute(prefix_path)
  keys = %w[account_chooser.sh csk.muttrc mailcap muttrc]
  keys.map do |config_file|
    key = build_path(prefix_path, config_file)
    value = ::Mustache.render assets_file_content(config_file), prefix_path: prefix_path
    {key => value}
  end
end