Sha256: 1a3b913b92c6bb95620f32793ba0896c6869980ceb34c7b35f9df9fad40eb941
Contents?: true
Size: 606 Bytes
Versions: 42
Compression:
Stored size: 606 Bytes
Contents
module Evertils module Controller class Firstrun < Controller::Base # Create the configuration file if it does not exist def default if File.exist?("#{Dir.home}/.evertils/config.yml") Notify.error('Configuration already exists, this is not the first run! Exiting.', show_time: false) end File.open("#{Dir.home}/.evertils/config.yml", "w") do |f| f.write <<-'CONTENTS' templates: Monthly: "templates/monthly.enml" Daily: "templates/daily.enml" provider: Evernote CONTENTS end end end end end
Version data entries
42 entries across 42 versions & 1 rubygems