Sha256: 7a0177f9ebb15e3e6a3a040b53c65a747aa5c8e5dd356fa3c1452b7702a408e4

Contents?: true

Size: 676 Bytes

Versions: 7

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_rails_base1/runner_with/bundle'
require 'eac_cli/core_ext'
require 'eac_ruby_utils/console/docopt_runner'

module Avm
  module EacRailsBase1
    class Runner < ::Avm::EacWebappBase0::Runner
      class CodeRunner
        runner_with ::Avm::EacRailsBase1::RunnerWith::Bundle
        runner_definition do
          desc 'Runs a Ruby code with "rails runner".'
          pos_arg :code
        end

        def run
          infov 'Environment', runner_context.call(:instance).host_env
          bundle_run
        end

        def bundle_args
          %w[exec rails runner] + [parsed.code]
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
avm-tools-0.80.0 lib/avm/eac_rails_base1/runner/code_runner.rb
avm-tools-0.79.0 lib/avm/eac_rails_base1/runner/code_runner.rb
avm-tools-0.78.0 lib/avm/eac_rails_base1/runner/code_runner.rb
avm-tools-0.77.0 lib/avm/eac_rails_base1/runner/code_runner.rb
avm-tools-0.76.1 lib/avm/eac_rails_base1/runner/code_runner.rb
avm-tools-0.76.0 lib/avm/eac_rails_base1/runner/code_runner.rb
avm-tools-0.75.1 lib/avm/eac_rails_base1/runner/code_runner.rb