File: printer.rb

package info (click to toggle)
ruby-sshkit 1.25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 712 kB
  • sloc: ruby: 3,749; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module SSHKit
  module Backend

    # Printer is used to implement --dry-run in Capistrano
    class Printer < Abstract

      def execute_command(cmd)
        output.log_command_start(cmd.with_redaction)
      end

      alias :upload! :execute
      alias :download! :execute

      def test(*)
        super
        true
      end
    end
  end
end