Class: TeamApi::Joiner
- Inherits:
-
Object
- Object
- TeamApi::Joiner
- Defined in:
- lib/team_api/joiner.rb
Overview
Joins the data from collections into site.data
. Also filters out private data when site.config[
‘public’] is true
(aka “public mode”).
Class Method Summary collapse
-
.join_data(site) ⇒ Object
Executes all of the steps to join the different data sources into
site.data
and filters out private data when in public mode.
Class Method Details
.join_data(site) ⇒ Object
Executes all of the steps to join the different data sources into site.data
and filters out private data when in public mode.
site
-
Jekyll site data object
17 18 19 20 21 22 23 24 25 |
# File 'lib/team_api/joiner.rb', line 17 def self.join_data(site) impl = JoinerImpl.new site impl.restructure_team_data! impl.init_team_data site.data['team'] impl.promote_or_remove_data impl.join_project_data Api.add_self_links site impl.join_snippet_data end |