Class: DogNotGod::Commands::ClientCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/client_commands.rb

Direct Known Subclasses

DiskStats, LoadStats, MemoryStats

Instance Method Summary collapse

Instance Method Details

#get_hostname_from_shellObject



42
43
44
# File 'lib/client_commands.rb', line 42

def get_hostname_from_shell
  DogNotGod::Shell.call("hostname").split("\n")[0]
end

#run!(resource) ⇒ Object



36
37
38
39
40
# File 'lib/client_commands.rb', line 36

def run!(resource)
  @resource = resource
  _prepare
  _execute
end