• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Nu-hin / remote_ruby / 12352744400

16 Dec 2024 12:34PM UTC coverage: 99.772% (-0.2%) from 100.0%
12352744400

Pull #4

github

web-flow
Merge 7ca475951 into 93c6c08e9
Pull Request #4: Add `bundler` parameter to `ExecutionContext`

11 of 13 new or added lines in 3 files covered. (84.62%)

874 of 876 relevant lines covered (99.77%)

71.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.86
/lib/remote_ruby/connection_adapter/local_stdin_adapter.rb
1
# frozen_string_literal: true
2

3
module RemoteRuby
16✔
4
  # An adapter to expecute Ruby code on the local macine
5
  # inside a specified directory
6
  class LocalStdinAdapter < ::RemoteRuby::StdinProcessAdapter
16✔
7
    attr_reader :working_dir, :bundler
16✔
8

9
    def initialize(working_dir: '.', bundler: false)
16✔
10
      super
112✔
11
      @working_dir = working_dir
112✔
12
      @bundler = bundler
112✔
13
    end
14

15
    def connection_name
16✔
16
      working_dir
16✔
17
    end
18

19
    private
16✔
20

21
    def command
16✔
22
      if bundler
80✔
NEW
23
        "cd \"#{working_dir}\" && bundle exec ruby"
×
24
      else
25
        "cd \"#{working_dir}\" && ruby"
80✔
26
      end
27
    end
28
  end
29
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc