Method: CloudFlock::Target::Servers::Profile#initialize
- Defined in:
- lib/cloudflock/target/servers/profile.rb
#initialize(shell) ⇒ Profile
Public: Initialize the Profile object.
shell - An SSH object which is open to the host which will be profiled.
Raises TypeError if shell is not of type SSH.
15 16 17 18 19 20 21 22 23 |
# File 'lib/cloudflock/target/servers/profile.rb', line 15 def initialize(shell) unless shell.is_a?(CloudFlock::Remote::SSH) raise(TypeError, Errstr::NOT_SSH) end @shell = shell @warnings = [] @info = {} end |