Class: Flynn::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/flynn/config.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



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_fileObject



15
16
17
# File 'lib/flynn/config.rb', line 15

def config_file
  @config_file ||= flynn_directory + 'config.yml'
end

#flynn_directoryObject



11
12
13
# File 'lib/flynn/config.rb', line 11

def flynn_directory
  @flynn_directory ||= Pathname.new("#{ENV["HOME"]}/.flynn")
end

#recipes_directoryObject



19
20
21
# File 'lib/flynn/config.rb', line 19

def recipes_directory
  @recipes_directory ||= flynn_directory + 'recipes'
end