Sha256: 3f5c7d8f8b9535cd28ffb0b3d23eba31462eea50d33b02554c60e2b677cdec5c
Contents?: true
Size: 627 Bytes
Versions: 28
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true require 'avm/eac_ruby_base1/sources/base' require 'avm/eac_webapp_base0/instance' module Avm module EacRailsBase1 class Instance < ::Avm::EacWebappBase0::Instance 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
Version data entries
28 entries across 28 versions & 2 rubygems