Sha256: 997d816dae300031a8e78c3c6ee7c307338e9de653b97273db2ccdd690a8e58d
Contents?: true
Size: 892 Bytes
Versions: 17
Compression:
Stored size: 892 Bytes
Contents
# frozen_string_literal: true require 'rake_factory' require 'ruby_leiningen' require 'ruby_leiningen/plugins' require_relative '../mixins/directoried' module RakeLeiningen module Tasks class Style < RakeFactory::Task include Mixins::Directoried default_name :style default_description 'Make all clojure files conform to a style.' default_prerequisites(RakeFactory::DynamicValue.new do |t| t.ensure_task_name ? [t.ensure_task_name] : [] end) parameter :mode parameter :paths parameter :directory, default: '.' parameter :ensure_task_name, default: 'leiningen:ensure' action do |t| $stdout.puts 'Styling all clojure files...' in_directory(t.directory) do RubyLeiningen.cljstyle( mode: t.mode, paths: t.paths ) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems