Class: Container
- Inherits:
-
Object
- Object
- Container
- Defined in:
- lib/pangea/docker.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(name, image) ⇒ Container
constructor
A new instance of Container.
- #login ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(name, image) ⇒ Container
Returns a new instance of Container.
88 89 90 91 |
# File 'lib/pangea/docker.rb', line 88 def initialize(name, image) @name = name @image = image end |
Instance Method Details
#create ⇒ Object
93 94 95 |
# File 'lib/pangea/docker.rb', line 93 def create Docker.create(@name, @image) end |
#login ⇒ Object
101 102 103 |
# File 'lib/pangea/docker.rb', line 101 def login Docker.login(@name) end |
#start ⇒ Object
97 98 99 |
# File 'lib/pangea/docker.rb', line 97 def start Docker.start(@name) end |