def load_environments!
      base_config = infer_configuration

      if File.file?(@config_file)
        base_config.merge!(load_configuration(@config_file))
      end

      @environments = {}

      if File.directory?(@environments_dir)
        Dir.glob(File.join(@environments_dir,'*.yml')) do |path|
          config = base_config.merge(load_configuration(path))
          name = File.basename(path).sub(/\.yml$/,'').to_sym

          @environments[name] = Environment.new(name,config)
        end
      else
        @environments[:production] = Environment.new(:production,base_config)
      end
    end
def load_environments!
      base_config = infer_configuration

      if File.file?(@config_file)
        base_config.merge!(load_configuration(@config_file))
      end

      @environments = {}

      if File.directory?(@environments_dir)
        Dir.glob(File.join(@environments_dir,'*.yml')) do |path|
          config = base_config.merge(load_configuration(path))
          name = File.basename(path).sub(/\.yml$/,'').to_sym

          @environments[name] = Environment.new(name,config)
        end
      else
        @environments[:production] = Environment.new(:production,base_config)
      end
    end
Loads the project configuration.

 @since 0.3.0