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

Version Path
eac_tools-0.22.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.21.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.20.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.19.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.18.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.17.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.16.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.16.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.15.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.14.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-eac_rails_base1-0.4.2 lib/avm/eac_rails_base1/instance.rb
eac_tools-0.13.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.12.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.11.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.11.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.10.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.9.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.8.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
eac_tools-0.7.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-eac_rails_base1-0.4.1 lib/avm/eac_rails_base1/instance.rb