Sha256: 2781a359ca716153d4cc5cb8283af26fef86aa481e15e7f7d4d1e2f717dbfece

Contents?: true

Size: 617 Bytes

Versions: 14

Compression:

Stored size: 617 Bytes

Contents

module RubyLeiningen
  module Commands
    module Mixins
      module Profile
        def initialize(opts={})
          super(opts)
          @profile = opts[:profile]
        end

        def for_profile(profile)
          @profile = profile
          self
        end

        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
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby_leiningen-0.24.0.pre.6 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.24.0.pre.5 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.24.0.pre.4 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.24.0.pre.3 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.24.0.pre.2 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.24.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.23.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.22.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.21.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.20.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.19.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.18.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.17.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.16.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb