Sha256: fb9cb1cd2f22a6bda227b5b59f5e0391665871ee07099bb6b27f6b79d78e985e

Contents?: true

Size: 576 Bytes

Versions: 77

Compression:

Stored size: 576 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_webapp_base0/instance'
require 'eac_ruby_gems_utils/gem'

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 ||= ::EacRubyGemsUtils::Gem.new(::File.join(read_entry('fs_path')), host_env)
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
avm-tools-0.120.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.119.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-eac_rails_base1-0.3.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.118.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.117.3 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.117.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.117.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.117.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-eac_rails_base1-0.2.1 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.116.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.116.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-eac_rails_base1-0.2.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.116.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.115.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.114.2 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.114.1 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.114.0 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.113.6 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-tools-0.113.5 sub/avm-eac_rails_base1/lib/avm/eac_rails_base1/instance.rb
avm-eac_rails_base1-0.1.4 lib/avm/eac_rails_base1/instance.rb