Sha256: 4f085de66d48c158de10babd88b54e6b494622eb8a0706df1dad664dcb433f3e

Contents?: true

Size: 576 Bytes

Versions: 15

Compression:

Stored size: 576 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)
          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

15 entries across 15 versions & 1 rubygems

Version Path
ruby_leiningen-0.15.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.14.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.13.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.12.0.pre.2 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.12.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.11.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.10.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.9.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.8.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.7.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.6.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.5.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.4.0.pre.1 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.3.0 lib/ruby_leiningen/commands/mixins/profile.rb
ruby_leiningen-0.2.0.pre.2 lib/ruby_leiningen/commands/mixins/profile.rb