Class: GitPusher::Config

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

Class Method Summary collapse

Class Method Details

.load(options) ⇒ Object



4
5
6
7
8
# File 'lib/gitpusher/config.rb', line 4

def self.load(options)
  context = GitPusher::Context.instance
  context.config = YAML.load_file(File.join(options[:config]))
  context.config[:base_dir] = File.expand_path(context.config[:base_dir])
end