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.32.0 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.63.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.62.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.31.0 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.62.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.61.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.61.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.60.3 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.60.2 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.60.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.60.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.59.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.58.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.57.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.56.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.56.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.55.7 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.55.6 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.55.5 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.55.4 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb