13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/bookbinder/middleman_runner.rb', line 13
def run(command,
streams: nil,
output_locations: nil,
config: nil,
local_repo_dir: nil,
subnavs: nil,
product_info: nil,
proof: false)
streams[:out].puts "\nRunning middleman...\n\n"
Dir.chdir(output_locations.master_dir) do
config = {
archive_menu: config.,
production_host: config.public_host,
subnav_templates: subnavs,
template_variables: config.template_variables,
local_repo_dir: local_repo_dir,
workspace: output_locations.workspace_dir,
feedback_enabled: config.feedback_enabled,
repo_link_enabled: config.repo_link_enabled,
repo_links: config.repo_links,
product_info: product_info,
elastic_search: config.elastic_search?,
proof: proof
}
fs.write(to: "bookbinder_config.yml", text: YAML.dump(config))
sheller.run_command({'MM_ROOT' => output_locations.master_dir.to_s},
"middleman #{command}",
streams)
end
end
|