Module: RubyLeiningen::Commands::Mixins::Profile

Included in:
Check, Clean, Deps, Release, Run, Uberjar
Defined in:
lib/ruby_leiningen/commands/mixins/profile.rb

Instance Method Summary collapse

Instance Method Details

#configure_command(initial_builder, opts) ⇒ Object



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

def configure_command(initial_builder, opts)
  builder = super
  profile = opts[:profile] || @profile
  if profile
    builder = builder
              .with_subcommand('with-profile')
              .with_subcommand(profile)
  end
  builder
end

#for_profile(profile) ⇒ Object



12
13
14
15
# File 'lib/ruby_leiningen/commands/mixins/profile.rb', line 12

def for_profile(profile)
  @profile = profile
  self
end

#initialize(opts = {}) ⇒ Object



7
8
9
10
# File 'lib/ruby_leiningen/commands/mixins/profile.rb', line 7

def initialize(opts = {})
  super
  @profile = opts[:profile]
end