Sha256: 58140b6c3bd87e9847ec8cfde8e280fc4af387b9f5e164dacf1d282ad3d37994
Contents?: true
Size: 887 Bytes
Versions: 12
Compression:
Stored size: 887 Bytes
Contents
require 'rake_factory' require 'ruby_leiningen' require 'ruby_leiningen/plugins' require_relative '../mixins/directoried' module RakeLeiningen module Tasks class Format < RakeFactory::Task include Mixins::Directoried default_name :format default_description "Format all clojure files." default_prerequisites RakeFactory::DynamicValue.new { |t| t.ensure_task_name ? [t.ensure_task_name] : [] } parameter :mode parameter :paths parameter :profile parameter :directory, default: '.' parameter :ensure_task_name, default: 'leiningen:ensure' action do |t| puts "Formatting all clojure files..." in_directory(t.directory) do RubyLeiningen.cljfmt( mode: t.mode, paths: t.paths, profile: t.profile) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems