-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
52 lines (43 loc) · 1.03 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require "bundler/gem_tasks"
require "omnibus-software"
task :test do
OmnibusSoftware.verify!
end
task :fetch do
rake_fakeout
software_name = ARGV[1]
path = ARGV[2] || "."
puts "Downloading #{software_name} to #{path}"
OmnibusSoftware.fetch(software_name, path)
end
task :build do
rake_fakeout
software_name = ARGV[1]
path = ARGV[2] || "."
puts "Downloading #{software_name} to #{path}"
OmnibusSoftware.build_software(software_name, path)
end
task :fetch_all do
rake_fakeout
path = ARGV[1] || "."
puts "Downloading all software to #{path}"
OmnibusSoftware.fetch_all(path)
end
def rake_fakeout
ARGV.each { |a| task a.to_sym {} }
end
task :list do
OmnibusSoftware.list
end
require "chefstyle"
require "rubocop/rake_task"
desc " Run ChefStyle"
RuboCop::RakeTask.new(:chefstyle) do |task|
task.options << "--display-cop-names"
end
namespace :travis do
# FIXME: re-add `chefstyle` once all the rubocop offenses have been fixed
# -> `task ci: %w{chefstyle test}`
task ci: %w{test}
end
task default: ["travis:ci"]