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-1.0.2 lib/phase/kit/ssh/command.rb
phase-1.0.1 lib/phase/kit/ssh/command.rb
phase-1.0.0 lib/phase/kit/ssh/command.rb
phase-1.0.0.rc2 lib/phase/kit/ssh/command.rb
phase-1.0.0.rc1 lib/phase/kit/ssh/command.rb
phase-0.0.17 lib/phase/kit/ssh/command.rb
phase-0.0.16.1 lib/phase/kit/ssh/command.rb
phase-0.0.16 lib/phase/kit/ssh/command.rb
phase-0.0.15 lib/phase/kit/ssh/command.rb
phase-0.0.14 lib/phase/kit/ssh/command.rb
phase-0.0.13 lib/phase/kit/ssh/command.rb
phase-0.0.12 lib/phase/kit/ssh/command.rb
phase-0.0.11 lib/phase/kit/ssh/command.rb
phase-0.0.10 lib/phase/kit/ssh/command.rb
phase-0.0.9 lib/phase/kit/ssh/command.rb
phase-0.0.8 lib/phase/kit/ssh/command.rb
phase-0.0.7 lib/phase/kit/ssh/command.rb
phase-0.0.6 lib/phase/kit/ssh/command.rb
phase-0.0.5 lib/phase/ssh/command.rb
phase-0.0.4 lib/phase/ssh/command.rb