Class: Serverspec::Type::Lxc
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::Lxc
show all
- Defined in:
- lib/serverspec/type/lxc.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #to_ary
Instance Method Details
#exists? ⇒ Boolean
4
5
6
|
# File 'lib/serverspec/type/lxc.rb', line 4
def exists?
backend.check_container(@name)
end
|
#running? ⇒ Boolean
8
9
10
|
# File 'lib/serverspec/type/lxc.rb', line 8
def running?
backend.check_container_running(@name)
end
|
#to_s ⇒ Object
12
13
14
|
# File 'lib/serverspec/type/lxc.rb', line 12
def to_s
'LXC'
end
|