-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
32 lines (32 loc) · 1.1 KB
/
Rakefile
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
namespace :templates do
desc "Push CODE_OF_CONDUCT.md to all repositories, this requires ENV['GITHUB_ACCESS_TOKEN']"
task :code_of_conduct do
require 'huborg'
client = Huborg::Client.new(org_names: ["samvera", "samvera-labs"])
client.push_template!(
template: File.expand_path("./templates/CODE_OF_CONDUCT.md"),
filename: "CODE_OF_CONDUCT.md",
overwrite: true
)
end
desc "Push CONTRIBUTING.md to all repositories, this requires ENV['GITHUB_ACCESS_TOKEN']"
task :contributing do
require 'huborg'
client = Huborg::Client.new(org_names: ["samvera", "samvera-labs"])
client.push_template!(
template: File.expand_path("./templates/CONTRIBUTING.md"),
filename: "CONTRIBUTING.md",
overwrite: true
)
end
desc "Push SUPPORT.md to all repositories, this requires ENV['GITHUB_ACCESS_TOKEN']"
task :support do
require 'huborg'
client = Huborg::Client.new(org_names: ["samvera", "samvera-labs"])
client.push_template!(
template: File.expand_path("./templates/SUPPORT.md"),
filename: "SUPPORT.md",
overwrite: true
)
end
end