Sha256: abaca5983667f331d1af0e2770e331b77691dbe14de994730e123dcae22fb7f5

Contents?: true

Size: 691 Bytes

Versions: 7

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_ruby_base1/sources/base'
require 'avm/eac_webapp_base0/instances/base'

module Avm
  module EacRailsBase1
    module Instances
      class Base < ::Avm::EacWebappBase0::Instances::Base
        DEFAULT_RAILS_ENVIRONMENT = 'production'

        def bundle(*args)
          the_gem.bundle(*args).chdir_root.envvar('RAILS_ENV', DEFAULT_RAILS_ENVIRONMENT)
        end

        def rake(*args)
          bundle('exec', 'rake', *args)
        end

        def the_gem
          @the_gem ||= ::Avm::EacRubyBase1::Sources::Base.new(::File.join(read_entry('fs_path')))
                         .env_set(host_env)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
eac_tools-0.26.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.25.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.25.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.24.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.24.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
avm-eac_rails_base1-0.5.0 lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.23.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb