module RubyLeiningen::Commands::Mixins::Profile

Public Class Methods

new(opts={}) click to toggle source
Calls superclass method
# File lib/ruby_leiningen/commands/mixins/profile.rb, line 5
def initialize(opts={})
  super(opts)
  @profile = opts[:profile]
end

Public Instance Methods

configure_command(builder, opts) click to toggle source
Calls superclass method
# File lib/ruby_leiningen/commands/mixins/profile.rb, line 15
def configure_command(builder, opts)
  builder = super(builder, opts)
  profile = opts[:profile] || @profile
  if profile
    builder = builder
        .with_subcommand('with-profile')
        .with_subcommand(profile)
  end
  builder
end
for_profile(profile) click to toggle source
# File lib/ruby_leiningen/commands/mixins/profile.rb, line 10
def for_profile(profile)
  @profile = profile
  self
end