Class: DogNotGod::Commands::ClientCommand
- Inherits:
-
Object
- Object
- DogNotGod::Commands::ClientCommand
show all
- Defined in:
- lib/client_commands.rb
Instance Method Summary
collapse
Instance Method Details
#get_hostname_from_shell ⇒ Object
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
|