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
3
4
5
|
# File 'lib/serverspec/type/lxc.rb', line 3
def exists?
@runner.check_lxc_container_exists(@name)
end
|
#running? ⇒ Boolean
7
8
9
|
# File 'lib/serverspec/type/lxc.rb', line 7
def running?
@runner.check_lxc_container_is_running(@name)
end
|
#to_s ⇒ Object
11
12
13
|
# File 'lib/serverspec/type/lxc.rb', line 11
def to_s
'LXC'
end
|