mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Load default config if no cli args specified
This commit is contained in:
		
							parent
							
								
									06855816d7
								
							
						
					
					
						commit
						8f4def5407
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -12,6 +12,10 @@ class Ameba::Config
 | 
			
		|||
    Config.new YAML.parse(content)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def self.load(path : Nil)
 | 
			
		||||
    self.load
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def files
 | 
			
		||||
    @files ||= default_files
 | 
			
		||||
  end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue