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.47.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.47.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.47.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
avm-eac_rails_base1-0.7.1 lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.46.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.45.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.45.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.45.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.44.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.43.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.42.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.41.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.40.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.39.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.38.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.37.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.37.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.37.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.36.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb
eac_tools-0.36.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instances/base.rb