Class: RubyLeiningen::Commands::Run

Inherits:
Base
  • Object
show all
Includes:
Mixins::Environment, Mixins::Profile
Defined in:
lib/ruby_leiningen/commands/run.rb

Instance Attribute Summary

Attributes inherited from Base

#binary

Instance Method Summary collapse

Methods included from Mixins::Environment

#for_environment, #initialize

Methods included from Mixins::Profile

#for_profile, #initialize

Methods inherited from Base

#execute, #initialize, #stderr, #stdin, #stdout

Instance Method Details

#configure_command(initial_builder, opts) ⇒ Object

rubocop:disable Style/RedundantAssignment



16
17
18
19
20
21
22
23
24
25
# File 'lib/ruby_leiningen/commands/run.rb', line 16

def configure_command(initial_builder, opts)
  builder = super
  builder = builder.with_subcommand('run') do |sub|
    sub = with_main_function(sub, opts[:main_function])
    sub = with_quote_arguments(sub, opts[:quote_arguments])
    sub
  end
  builder = with_arguments(builder, opts[:arguments])
  builder
end