Module: WonkoTheSane
- Defined in:
- lib/wonko_the_sane.rb,
lib/wonko_the_sane/version.rb,
lib/wonko_the_sane/util/benchmark.rb,
lib/wonko_the_sane/wonkoweb_uploader.rb,
lib/wonko_the_sane/util/configuration.rb,
lib/wonko_the_sane/util/maven_identifier.rb,
lib/wonko_the_sane/util/deep_storage_cache.rb
Defined Under Namespace
Modules: Util
Classes: WonkoWeb, WonkoWebUploader
Constant Summary
collapse
- VERSION =
'0.1.2'
Class Method Summary
collapse
Class Method Details
78
79
80
|
# File 'lib/wonko_the_sane.rb', line 78
def self.configure(&block)
yield configuration
end
|
.data(file) ⇒ Object
65
66
67
|
# File 'lib/wonko_the_sane.rb', line 65
def self.data(file)
configuration.data_path + '/' + file
end
|
.data_json(file) ⇒ Object
69
70
71
72
|
# File 'lib/wonko_the_sane.rb', line 69
def self.data_json(file)
res = JSON.parse File.read data file
res.is_a?(Hash) ? HashWithIndifferentAccess.new(res) : res
end
|
.lists ⇒ Object
57
58
59
|
# File 'lib/wonko_the_sane.rb', line 57
def self.lists
configuration.lists
end
|
.set_data_json(file, obj) ⇒ Object
74
75
76
|
# File 'lib/wonko_the_sane.rb', line 74
def self.set_data_json(file, obj)
File.write data(file), JSON.pretty_generate(obj)
end
|
.settings_file ⇒ Object
61
62
63
|
# File 'lib/wonko_the_sane.rb', line 61
def self.settings_file
File.dirname(__FILE__) + '/../wonko_the_sane.yml'
end
|
.wonkoweb_uploader ⇒ Object
53
54
55
|
# File 'lib/wonko_the_sane.rb', line 53
def self.wonkoweb_uploader
@uploader ||= WonkoWebUploader.new
end
|