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.21.2 lib/chake/backend/local.rb
chake-0.21.1 lib/chake/backend/local.rb
chake-0.21 lib/chake/backend/local.rb
chake-0.20 lib/chake/backend/local.rb
chake-0.19 lib/chake/backend/local.rb
chake-0.18 lib/chake/backend/local.rb
chake-0.17.1 lib/chake/backend/local.rb
chake-0.17 lib/chake/backend/local.rb
chake-0.16 lib/chake/backend/local.rb
chake-0.15 lib/chake/backend/local.rb
chake-0.14 lib/chake/backend/local.rb
chake-0.13 lib/chake/backend/local.rb
chake-0.12 lib/chake/backend/local.rb
chake-0.11 lib/chake/backend/local.rb
chake-0.10.2 lib/chake/backend/local.rb
chake-0.10.1 lib/chake/backend/local.rb
chake-0.10 lib/chake/backend/local.rb
chake-0.9.1 lib/chake/backend/local.rb
chake-0.9 lib/chake/backend/local.rb
chake-0.8 lib/chake/backend/local.rb