Sha256: 41492683ddc4a930b54645db403ec9246d52f0a5655544c0e082aea0011ae5a4

Contents?: true

Size: 297 Bytes

Versions: 22

Compression:

Stored size: 297 Bytes

Contents

module Phase
  module SSH
    class Command < ::SSHKit::Command

      def on_remote_host(&block)
        return yield unless options[:remote_host]
        "ssh #{ options[:remote_host] } -- %s" % yield
      end

      def to_command
        on_remote_host { super }
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
phase-0.0.2 lib/phase/ssh/command.rb
phase-0.0.1 lib/phase/ssh/command.rb