Adjusts Run Post Install

This commit is contained in:
Dlani Mendes
2015-10-02 18:14:19 -03:00
committed by Petr Korolev
parent 341fb109ab
commit 4058369710
4 changed files with 18 additions and 14 deletions
+15 -1
View File
@@ -1,7 +1,21 @@
require "bundler/gem_tasks"
require "rubocop/rake_task"
require "rspec/core/rake_task"
require "pathname"
require "fileutils"
RuboCop::RakeTask.new
RSpec::Core::RakeTask.new(:rspec)
task default: [:rubocop, :rspec]
task :create_man do |_t|
os_prefix = "/usr/local"
man_prefix = Pathname("#{os_prefix}/share/man/man1")
man_pages = "man/git-*"
Pathname.glob(man_pages) do |path|
FileUtils.cp(path, man_prefix + path.basename)
end
end
task checks: [:rubocop, :rspec]
task default: [:checks, :create_man]