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

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

Instance Method Summary collapse

Instance Method Details

#configure_command(builder, opts) ⇒ Object



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

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

#for_profile(profile) ⇒ Object



10
11
12
13
# File 'lib/ruby_leiningen/commands/mixins/profile.rb', line 10

def for_profile(profile)
  @profile = profile
  self
end

#initialize(opts = {}) ⇒ Object



5
6
7
8
# File 'lib/ruby_leiningen/commands/mixins/profile.rb', line 5

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