Module: Herdic
- Defined in:
- lib/herdic.rb,
lib/herdic/util.rb,
lib/herdic/store.rb,
lib/herdic/client.rb,
lib/herdic/loader.rb,
lib/herdic/printer.rb,
lib/herdic/version.rb
Defined Under Namespace
Modules: Util
Classes: Client, Configuration, Loader, Printer, Store
Constant Summary
collapse
- MAJOR =
1
- MINOR =
0
- REVISION =
4
- VERSION =
[MAJOR, MINOR, REVISION].compact.join '.'
Class Method Summary
collapse
Class Method Details
.ensure_directory! ⇒ Object
43
44
45
46
|
# File 'lib/herdic.rb', line 43
def ensure_directory!
FileUtils.mkdir_p self.herdic_path
FileUtils.mkdir_p self.store_path
end
|
.method_missing(method_name, *args, &block) ⇒ Object
48
49
50
51
52
53
54
|
# File 'lib/herdic.rb', line 48
def method_missing(method_name, *args, &block)
if @config.respond_to? method_name
@config.send method_name, *args, &block
else
super
end
end
|
.respond_to?(method_name, include_private = false) ⇒ Boolean
56
57
58
|
# File 'lib/herdic.rb', line 56
def respond_to?(method_name, include_private = false)
@config.respond_to? method_name
end
|
.setup {|@config| ... } ⇒ Object
35
36
37
38
39
40
41
|
# File 'lib/herdic.rb', line 35
def setup
@config ||= Configuration.new
yield @config if block_given?
ensure_directory!
end
|