Sha256: c09140354e27e8c5589714e2a47d214be28a4284016d4195addb72456dd5eeaa

Contents?: true

Size: 306 Bytes

Versions: 23

Compression:

Stored size: 306 Bytes

Contents

require 'socket'

module Chake

  class Backend

    class Local < Backend

      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

23 entries across 23 versions & 1 rubygems

Version Path
chake-0.7 lib/chake/backend/local.rb
chake-0.6 lib/chake/backend/local.rb
chake-0.5 lib/chake/backend/local.rb