Sha256: 29d0c9c0ad50eb95be261cfbada9effb9cf4c3bf8a5abd0e947d6db8deb3da29

Contents?: true

Size: 481 Bytes

Versions: 59

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

module Avm
  module Stereotypes
    module Rails
      module Instance
        def bundle(*args)
          host_env.command('bundle', *args)
                  .envvar('BUNDLE_GEMFILE', ::File.join(read_entry('fs_path'), 'Gemfile'))
                  .envvar('RAILS_ENV', 'production')
                  .chdir(read_entry('fs_path'))
        end

        def rake(*args)
          bundle('exec', 'rake', *args)
        end
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
avm-tools-0.70.2 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.70.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.70.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.69.3 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.69.2 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.69.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.69.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.68.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.67.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.66.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.65.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.64.2 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.64.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.64.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.63.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.62.4 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.62.3 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.62.2 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.62.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.62.0 lib/avm/stereotypes/rails/instance.rb