Sha256: e7bbccfa975609921d36fd2db13f742b80597e3f408ed3189da41dca47d86ece

Contents?: true

Size: 694 Bytes

Versions: 34

Compression:

Stored size: 694 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('install.path'))
          ).env_set(host_env)
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
eac_tools-0.35.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.34.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.33.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
avm-eac_rails_base1-0.7.0 lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.32.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.31.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.31.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.30.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.29.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.28.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.27.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.27.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
avm-eac_rails_base1-0.6.0 lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.27.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb