Sha256: 057a36ff53ec8ffbd621917a024f62b33f27273d58781fa314afe40bce8029f0
Contents?: true
Size: 966 Bytes
Versions: 4
Compression:
Stored size: 966 Bytes
Contents
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 ->(t) { t.ensure_task_name ? [t.ensure_task_name] : [] } parameter :main_function parameter :arguments parameter :quote_arguments parameter :profile parameter :directory, default: '.' parameter :ensure_task_name, default: 'leiningen:ensure' action do |t| 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) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems