Class: Pygmy::SshAgent

Inherits:
Object
  • Object
show all
Extended by:
DockerService
Defined in:
lib/pygmy/ssh_agent.rb

Class Method Summary collapse

Methods included from DockerService

container_exists?, delete, has_docker_client?, ps, pull, running?, start, start_cmd, stop

Class Method Details

.container_nameObject



11
12
13
# File 'lib/pygmy/ssh_agent.rb', line 11

def self.container_name
  'amazeeio-ssh-agent'
end

.image_nameObject



7
8
9
# File 'lib/pygmy/ssh_agent.rb', line 7

def self.image_name
  'amazeeio/ssh-agent'
end

.run_cmdObject



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