Sha256: c53962fa3240724c2979936cc2af52f054511c56f700aca5f43eef310c0ca9dc
Contents?: true
Size: 1.41 KB
Versions: 4
Compression:
Stored size: 1.41 KB
Contents
# frozen_string_literal: true require "digest" require "rake/clean" #require "sqlite3" # This module provides classes for the Makit gem. module Makit # This class provide methods for managing persistent data for the makit gem class Tasks def self.run_default_commands(task_name) Makit::LOGGER.debug("Running default commands for task: #{task_name}") end end end desc "Remove any temporary products." task :clean do puts ":clean".colorize(:blue) Makit::RUNNER.run(Makit::RUNNER.parse_command_request("git clean -dXf")) end desc "Integrate changes into the git repository." task :integrate do puts ":integrate".colorize(:blue) Makit::Git.integrate end desc "Sync changes with the git repository." task :sync do puts ":sync".colorize(:blue) Makit::Git.sync end desc "Format source code." task :format do puts ":format".colorize(:blue) Makit::RUNNER.try("rufo .") if File.exist?("Gemfile") || File.exist?("Rakefile") end desc "Update dependencies." task :update do puts ":update".colorize(:blue) system("bundle update") if File.exist?("Gemfile") # glob all *.csproj files Dir.glob("**/*.csproj").each do |file| "dotnet format #{file}".run end end # Register the at_exit hook for cleanup at_exit do #puts "at_exit in tasks.rb...." duration = Time.now - Makit::STARTTIME puts " completed in ".colorize(:grey) + Makit::Humanize.get_humanized_duration(duration).colorize(:green) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
makit-0.0.30 | lib/makit/tasks.rb |
makit-0.0.29 | lib/makit/tasks.rb |
makit-0.0.28 | lib/makit/tasks.rb |
makit-0.0.27 | lib/makit/tasks.rb |