Class: RanchHand::Config
- Inherits:
-
Object
- Object
- RanchHand::Config
- Extended by:
- Commands
- Defined in:
- lib/ranch_hand/config.rb
Class Method Summary collapse
Class Method Details
.create ⇒ Object
5 6 7 8 |
# File 'lib/ranch_hand/config.rb', line 5 def self.create save(generate_config) RanchHand::Logger.info("Config file saved to #{project_config_path}") end |
.load ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/ranch_hand/config.rb', line 10 def self.load begin YAML.load_file(project_config_path) rescue Errno::ENOENT {} end end |