Class: AocCli::Files::Config::Example

Inherits:
Object
  • Object
show all
Defined in:
lib/aoc_cli/files.rb

Class Method Summary collapse

Class Method Details

.fileObject



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/aoc_cli/files.rb', line 80

def self.file
  "  //aoc-cli example config\n  //See the github repo for more information on configuring aoc-cli\n  //https://github.com/apexatoll/aoc-cli\n  \n  [General]\n  //Print table in unicode rather than ascii\n  unicode_tables=>true\n  //Open Reddit in browser rather than use a Reddit CLI\n  reddit_in_browser=>false\n  \n  [Initialise Year]\n  //Create a calendar file \n  calendar_file=>true\n  //Initialise git repo on year initialisation\n  init_git=>false\n  //Add calendar and puzzle files to gitignore\n  ignore_md_files=>true\n  //Add .meta files to gitignore\n  ignore_meta_files=>true\n  //Include leaderboard stats in calendar file\n  lb_in_calendar=>true\n  file\nend\n"

.writeObject



77
78
79
# File 'lib/aoc_cli/files.rb', line 77

def self.write
  File.write(Validate.no_config, file)
end