Class: Ridley::HostConnector::Base
- Inherits:
-
Object
- Object
- Ridley::HostConnector::Base
- Includes:
- Celluloid, Logging
- Defined in:
- lib/ridley/host_connector.rb
Instance Method Summary collapse
-
#bootstrap(host, options = {}) ⇒ HostConnector::Response
Bootstrap a node.
-
#chef_client(host, options = {}) ⇒ HostConnector::Response
Perform a chef client run on a node.
-
#put_secret(host, secret, options = {}) ⇒ HostConnector::Response
Write your encrypted data bag secret on a node.
-
#ruby_script(host, command_lines, options = {}) ⇒ HostConnector::Response
Execute line(s) of Ruby code on a node using Chef’s embedded Ruby.
-
#run(host, command, options = {}) ⇒ HostConnector::Response
Execute a shell command on a node.
-
#uninstall_chef(host, options = {}) ⇒ HostConnector::Response
Uninstall Chef from a node.
Methods included from Logging
Instance Method Details
#bootstrap(host, options = {}) ⇒ HostConnector::Response
Bootstrap a node
26 27 28 |
# File 'lib/ridley/host_connector.rb', line 26 def bootstrap(host, = {}) raise RuntimeError, "abstract function: must be implemented on includer" end |
#chef_client(host, options = {}) ⇒ HostConnector::Response
Perform a chef client run on a node
37 38 39 |
# File 'lib/ridley/host_connector.rb', line 37 def chef_client(host, = {}) raise RuntimeError, "abstract function: must be implemented on includer" end |
#put_secret(host, secret, options = {}) ⇒ HostConnector::Response
Write your encrypted data bag secret on a node
50 51 52 |
# File 'lib/ridley/host_connector.rb', line 50 def put_secret(host, secret, = {}) raise RuntimeError, "abstract function: must be implemented on includer" end |
#ruby_script(host, command_lines, options = {}) ⇒ HostConnector::Response
Execute line(s) of Ruby code on a node using Chef’s embedded Ruby
63 64 65 |
# File 'lib/ridley/host_connector.rb', line 63 def ruby_script(host, command_lines, = {}) raise RuntimeError, "abstract function: must be implemented on includer" end |
#run(host, command, options = {}) ⇒ HostConnector::Response
Execute a shell command on a node
15 16 17 |
# File 'lib/ridley/host_connector.rb', line 15 def run(host, command, = {}) raise RuntimeError, "abstract function: must be implemented on includer" end |
#uninstall_chef(host, options = {}) ⇒ HostConnector::Response
Uninstall Chef from a node
74 75 76 |
# File 'lib/ridley/host_connector.rb', line 74 def uninstall_chef(host, = {}) raise RuntimeError, "abstract function: must be implemented on includer" end |