-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
42 lines (33 loc) · 1.39 KB
/
Copy pathRakefile
File metadata and controls
42 lines (33 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
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
# *******************************************************************************
# OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
# BuildingSync(R), Copyright (c) Alliance for Energy Innovation, LLC.
# See also https://github.com/BuildingSync/BOSS/blob/develop/LICENSE.md
# *******************************************************************************
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require_relative './lib/BOSS/constants'
require_relative './lib/BOSS/external_measure_repo_manager'
RSpec::Core::RakeTask.new(:spec)
require 'rubocop/rake_task'
RuboCop::RakeTask.new
task default: :spec
namespace :measures do
desc 'Clone/fetch external non-gem measure repositories declared in config/external_measure_repos.yml'
task :install_external do
manager = BOSS::ExternalMeasureRepoManager.new
if !manager.manifest_exists?
puts "No external measure manifest found at #{EXTERNAL_MEASURE_REPOS_MANIFEST_PATH}"
next
end
dirs = manager.install_all
puts "Installed external measure roots (#{dirs.length}):"
dirs.each { |dir| puts " - #{dir}" }
end
desc 'List resolved external non-gem measure directories'
task :list_external do
manager = BOSS::ExternalMeasureRepoManager.new
dirs = manager.resolved_measure_directories
puts "External measure roots (#{dirs.length}):"
dirs.each { |dir| puts " - #{dir}" }
end
end