Sha256: 5ec94bd6be6b17bd0110e4fe638d89fa19bf553704ef8834c04b32d59b478464
Contents?: true
Size: 1.08 KB
Versions: 17
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require 'rake_factory' require 'ruby_leiningen' require 'ruby_leiningen/plugins' require_relative '../mixins/directoried' module RakeLeiningen module Tasks class Start < RakeFactory::Task include Mixins::Directoried default_name :start default_description 'Run the application.' default_prerequisites(RakeFactory::DynamicValue.new do |t| t.ensure_task_name ? [t.ensure_task_name] : [] end) parameter :main_function parameter :arguments parameter :quote_arguments parameter :profile parameter :environment parameter :directory, default: '.' parameter :ensure_task_name, default: 'leiningen:ensure' action do |t| $stdout.puts 'Running the application...' in_directory(t.directory) do RubyLeiningen.run( main_function: t.main_function, arguments: t.arguments, quote_arguments: t.quote_arguments, profile: t.profile, environment: t.environment ) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems