Sha256: 30f11b3c0cece668bfd32ad0874e3984ce4be32ce29bdff57634d39f847fa103

Contents?: true

Size: 306 Bytes

Versions: 9

Compression:

Stored size: 306 Bytes

Contents

require 'socket'

module Chake
  class Connection
    class Local < Connection
      def command_runner
        ['sh', '-c']
      end

      def shell_command
        ENV.fetch('SHELL', Etc.getpwuid.shell)
      end

      def skip?
        node.hostname != Socket.gethostname
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
chake-0.91 lib/chake/connection/local.rb
chake-0.90.3 lib/chake/connection/local.rb
chake-0.90.2 lib/chake/connection/local.rb
chake-0.90.1 lib/chake/connection/local.rb
chake-0.90 lib/chake/connection/local.rb
chake-0.82 lib/chake/connection/local.rb
chake-0.81.1 lib/chake/connection/local.rb
chake-0.81 lib/chake/connection/local.rb
chake-0.80 lib/chake/connection/local.rb