Class: Flynn::Config
- Inherits:
-
Object
- Object
- Flynn::Config
- Defined in:
- lib/flynn/config.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
5 6 7 8 9 |
# File 'lib/flynn/config.rb', line 5 def build recipes_directory.mkpath # will make the .flynn directory as well config_file.open('w').close # is there an easier way self end |
#config_file ⇒ Object
15 16 17 |
# File 'lib/flynn/config.rb', line 15 def config_file @config_file ||= flynn_directory + 'config.yml' end |
#flynn_directory ⇒ Object
11 12 13 |
# File 'lib/flynn/config.rb', line 11 def flynn_directory @flynn_directory ||= Pathname.new("#{ENV["HOME"]}/.flynn") end |
#recipes_directory ⇒ Object
19 20 21 |
# File 'lib/flynn/config.rb', line 19 def recipes_directory @recipes_directory ||= flynn_directory + 'recipes' end |