Sha256: 38357c9dac1de8792cf8b586a3e5b6077b2bb2589fca9d32daab22ccc1e792ff

Contents?: true

Size: 869 Bytes

Versions: 114

Compression:

Stored size: 869 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_rails_base1/runner_with/bundle'
require 'avm/instances/entry_keys'
require 'eac_cli/core_ext'
require 'shellwords'

module Avm
  module EacRailsBase1
    class Runner < ::Avm::EacWebappBase0::Runner
      class RailsServer
        DEFAULT_RAILS_ENVIRONMENT = 'development'
        runner_with :help, ::Avm::EacRailsBase1::RunnerWith::Bundle do
          desc 'Run the embbeded Rails web server.'
        end

        def run
          infov 'Environment', rails_environment
          infov 'Bundle args', ::Shellwords.join(bundle_args)
          infov 'Result', bundle_command.system
        end

        protected

        def bundle_args
          ['exec', 'rails', 'server', '--port',
           runner_context.call(:instance).read_entry(::Avm::Instances::EntryKeys::WEB_PORT)]
        end
      end
    end
  end
end

Version data entries

114 entries across 114 versions & 3 rubygems

Version Path
avm-eac_rails_base1-0.4.1 lib/avm/eac_rails_base1/runner/rails_server.rb
eac_tools-0.6.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-eac_rails_base1-0.4.0 lib/avm/eac_rails_base1/runner/rails_server.rb
eac_tools-0.5.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
eac_tools-0.4.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
eac_tools-0.3.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
eac_tools-0.2.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-eac_rails_base1-0.3.2 lib/avm/eac_rails_base1/runner/rails_server.rb
avm-eac_rails_base1-0.3.1 lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.120.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.119.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-eac_rails_base1-0.3.0 lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.118.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.117.3 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.117.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.117.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.117.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-eac_rails_base1-0.2.1 lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.116.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb
avm-tools-0.116.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/runner/rails_server.rb