Class: Pygmy::SshAgent
Class Method Summary
collapse
container_exists?, delete, has_docker_client?, ps, pull, running?, start, start_cmd, stop
Class Method Details
.container_name ⇒ Object
11
12
13
|
# File 'lib/pygmy/ssh_agent.rb', line 11
def self.container_name
'amazeeio-ssh-agent'
end
|
.image_name ⇒ Object
7
8
9
|
# File 'lib/pygmy/ssh_agent.rb', line 7
def self.image_name
'amazeeio/ssh-agent'
end
|
.run_cmd ⇒ Object
15
16
17
18
19
20
|
# File 'lib/pygmy/ssh_agent.rb', line 15
def self.run_cmd
"docker run -d " \
"--restart=always " \
"--name=#{Shellwords.escape(self.container_name)} " \
"#{Shellwords.escape(self.image_name)}"
end
|