Class: Kitchen::Driver::VmpoolStores::BaseStore
- Inherits:
-
Object
- Object
- Kitchen::Driver::VmpoolStores::BaseStore
show all
- Includes:
- Logging
- Defined in:
- lib/kitchen/driver/vmpool_stores/base_store.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#pool_data(refresh = false) ⇒ Object
Returns the value of attribute pool_data.
10
11
12
|
# File 'lib/kitchen/driver/vmpool_stores/base_store.rb', line 10
def pool_data
@pool_data
end
|
#pool_file ⇒ Object
Returns the value of attribute pool_file.
10
11
12
|
# File 'lib/kitchen/driver/vmpool_stores/base_store.rb', line 10
def pool_file
@pool_file
end
|
Instance Method Details
#create ⇒ Object
19
20
21
22
23
|
# File 'lib/kitchen/driver/vmpool_stores/base_store.rb', line 19
def create
write_content(base_content)
read
end
|
#read ⇒ Object
25
26
27
28
|
# File 'lib/kitchen/driver/vmpool_stores/base_store.rb', line 25
def read
read_content
end
|
#reread ⇒ Object
30
31
32
|
# File 'lib/kitchen/driver/vmpool_stores/base_store.rb', line 30
def reread
pool_data(true)
end
|
#save ⇒ Object
34
35
36
37
38
|
# File 'lib/kitchen/driver/vmpool_stores/base_store.rb', line 34
def save
write_content
read
end
|
#update(content = nil) ⇒ Object
13
14
15
16
17
|
# File 'lib/kitchen/driver/vmpool_stores/base_store.rb', line 13
def update(content = nil)
write_content(content)
read
end
|