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.101.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.100.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.99.1 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.99.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.98.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.97.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.96.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.95.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.94.3 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.94.2 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.94.1 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.94.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.93.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.92.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.91.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.90.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.89.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.88.0 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.87.1 lib/avm/eac_rails_base1/instance.rb
avm-tools-0.87.0 lib/avm/eac_rails_base1/instance.rb