Class: Hanami::Devtools::RakeHelper
- Inherits:
-
Object
- Object
- Hanami::Devtools::RakeHelper
- Includes:
- Rake::DSL
- Defined in:
- lib/hanami/devtools/rake_helper.rb
Overview
Distribute Rake tasks
Class Method Summary collapse
Instance Method Summary collapse
-
#install ⇒ Object
rubocop:disable Metrics/MethodLength.
Class Method Details
.install_tasks ⇒ Object
11 12 13 |
# File 'lib/hanami/devtools/rake_helper.rb', line 11 def self.install_tasks new.install end |
Instance Method Details
#install ⇒ Object
rubocop:disable Metrics/MethodLength
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/hanami/devtools/rake_helper.rb', line 15 def install # rubocop:disable Metrics/MethodLength namespace :codecov do desc "Uploads the latest simplecov result set to codecov.io" task :upload do if ENV["CI"] require "simplecov" require "codecov" formatter = SimpleCov::Formatter::Codecov.new formatter.format(SimpleCov::ResultMerger.merged_result) end end end end |