Sha256: 0d23ba38fdcba9718696111a16f51d50c5a76db0976febc6e39eba9c9d3d0e06

Contents?: true

Size: 639 Bytes

Versions: 73

Compression:

Stored size: 639 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_rails_base1/runner_with/bundle'
require 'eac_cli/core_ext'

module Avm
  module EacRailsBase1
    module Instances
      module Runners
        class CodeRunner
          runner_with :help, ::Avm::EacRailsBase1::RunnerWith::Bundle 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
end

Version data entries

73 entries across 73 versions & 2 rubygems

Version Path
avm-eac_rails_base1-0.10.2 lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.97.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
avm-eac_rails_base1-0.10.1 lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.96.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.84.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.83.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.82.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.81.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
avm-eac_rails_base1-0.10.0 lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.80.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.79.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.78.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.77.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.77.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.76.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.76.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.75.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
avm-eac_rails_base1-0.9.3 lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.75.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb
eac_tools-0.75.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/runners/code_runner.rb