Sha256: da478e22e60e4dc07a869def1c6ab82eae4379030244bfe172cc0ea05c951b9b
Contents?: true
Size: 820 Bytes
Versions: 6
Compression:
Stored size: 820 Bytes
Contents
require 'rake_factory' require 'ruby_leiningen' require 'ruby_leiningen/plugins' require_relative '../mixins/directoried' module RakeLeiningen module Tasks class Release < RakeFactory::Task include Mixins::Directoried default_name :release default_description "Release library." default_prerequisites RakeFactory::DynamicValue.new { |t| t.ensure_task_name ? [t.ensure_task_name] : [] } parameter :level parameter :profile parameter :directory, default: '.' parameter :ensure_task_name, default: 'leiningen:ensure' action do |t| puts "Releasing library..." in_directory(t.directory) do RubyLeiningen.release( level: t.level, profile: t.profile) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems