module Egads::RemoteConfig

Remote config for the extract command (before data in tarball is available)

Public Class Methods

bundler_options() click to toggle source
# File lib/egads/config.rb, line 88
def self.bundler_options
  config['bundler']['options'] if config['bundler']
end
config_path() click to toggle source
# File lib/egads/config.rb, line 55
def self.config_path
  path = ENV['EGADS_REMOTE_CONFIG'] || "/etc/egads.yml"
  unless path && File.readable?(path)
    raise ArgumentError.new("Could not read remote config file. Set either EGADS_REMOTE_CONFIG, or create /etc/egads.yml")
  end
  path
end
extract_to() click to toggle source
# File lib/egads/config.rb, line 67
def self.extract_to
  config['extract_to']
end
release_dir(sha) click to toggle source
# File lib/egads/config.rb, line 75
def self.release_dir(sha)
  File.join(config['extract_to'], sha)
end
release_to() click to toggle source
# File lib/egads/config.rb, line 63
def self.release_to
  config['release_to']
end
restart_command() click to toggle source
# File lib/egads/config.rb, line 84
def self.restart_command
  config['restart_command']
end
seed_dir() click to toggle source
# File lib/egads/config.rb, line 71
def self.seed_dir
  config['cache_seeds_to']
end
setup_environment() click to toggle source

Set environment variables from the config

# File lib/egads/config.rb, line 80
def self.setup_environment
  config['env'].each{|k,v| ENV[k] = v.to_s } if config['env']
end