Class: Tzispa::Tzisparc
Constant Summary
collapse
- FILE_NAME =
'.tzisparc'
- SEPARATOR =
'='
Constants included
from Config::Rc
Config::Rc::APP_ARCHITECTURE, Config::Rc::ARCHITECTURE_KEY, Config::Rc::DEFAULT_ARCHITECTURE, Config::Rc::DEFAULT_TEST_SUITE, Config::Rc::PROJECT_NAME, Config::Rc::TEST_KEY
Instance Method Summary
collapse
Constructor Details
#initialize(root) ⇒ Tzisparc
Returns a new instance of Tzisparc.
18
19
20
|
# File 'lib/tzispa/tzisparc.rb', line 18
def initialize(root)
@root = root
end
|
Instance Method Details
#default_options ⇒ Object
#exists? ⇒ Boolean
32
33
34
|
# File 'lib/tzispa/tzisparc.rb', line 32
def exists?
path_file.exist?
end
|
#generate ⇒ Object
36
37
38
39
40
|
# File 'lib/tzispa/tzisparc.rb', line 36
def generate
File.open(path_file, 'w') do |file|
default_options.each { |k, v| file.puts("#{k}#{SEPARATOR}#{v}") }
end
end
|
#options ⇒ Object
22
23
24
|
# File 'lib/tzispa/tzisparc.rb', line 22
def options
@options ||= default_options.merge(file_options).symbolize!
end
|