Sha256: b6403c81c881a7f41e9d2a40bf03ac9bf91459173ec9b22934464b50ef1729bc

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

require 'specinfra'

module Populus
  class Node
    class << self
      def registry
        @nodes ||= {}
      end

      def register_host(hostname)
        registry[hostname] = gen_host(hostname)
      end

      private
      def gen_host(hostname)
        return Specinfra::Backend::Ssh.new(
          host: hostname,
          ssh_options: Populus.config.ssh_options,
          request_pty: true
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
populus-0.0.4 lib/populus/node.rb