module Egads::Config
Local config in the tarball or current working directory
Public Class Methods
build_extra_paths()
click to toggle source
# File lib/egads/config.rb, line 42 def self.build_extra_paths config['build'] && Array(config['build']['extra_paths']) end
config_path()
click to toggle source
# File lib/egads/config.rb, line 24 def self.config_path path = ENV['EGADS_CONFIG'] || File.join(Dir.pwd, 'egads.yml') unless path && File.readable?(path) raise ArgumentError.new("Could not read config file. Set either EGADS_CONFIG, or create egads.yml in the current directory") end path end
hooks_for(cmd, hook)
click to toggle source
Returns the hooks in the config for cmd and hook. E.g. hooks_for
(:build, :post)
# File lib/egads/config.rb, line 34 def self.hooks_for(cmd, hook) if Hash === config[cmd.to_s] Array(config[cmd.to_s][hook.to_s]) else [] end end
seed_branch()
click to toggle source
# File lib/egads/config.rb, line 46 def self.seed_branch config['seed_branch'] || "egads-seed" end