Sha256: 1553b8348fc0e82759817c256aa7d54004cbbc603c7b3202dc3b2c3e2b2d7dfb
Contents?: true
Size: 842 Bytes
Versions: 11
Compression:
Stored size: 842 Bytes
Contents
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 { |t| t.ensure_task_name ? [t.ensure_task_name] : [] } parameter :mode parameter :paths parameter :directory, default: '.' parameter :ensure_task_name, default: 'leiningen:ensure' action do |t| 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
11 entries across 11 versions & 1 rubygems