Sha256: 1636e90b1a7f35ca3bd4cd078469975d88bb51b6866908357aa884e43af069e0

Contents?: true

Size: 592 Bytes

Versions: 217

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'eac_cli/runner'
require 'eac_cli/runner_with'
require 'eac_cli/runner_with_set'

class Object
  def runner_with(*runners, &block)
    include ::EacCli::Runner
    enable_simple_cache
    enable_speaker
    runners.each do |runner|
      include ::EacCli::RunnerWithSet.default.item_to_module(runner)
    end
    runner_definition(&block) if block
  end

  private

  def runner_with_to_module(runner)
    return runner if runner.is_a?(::Module)

    "EacCli::RunnerWith::#{runner.to_s.camelize}".constantize
  end
end

Version data entries

217 entries across 217 versions & 4 rubygems

Version Path
eac_cli-0.42.0 lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.40.1 lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.40.0 lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.39.0 lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.38.1 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.82.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.81.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.80.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.79.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.78.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.77.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.77.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.38.0 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.76.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.76.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.75.2 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.37.0 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.75.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.75.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.74.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb