Module: Shilling
- Defined in:
- lib/shilling.rb,
lib/shilling/tool.rb,
lib/shilling/service.rb,
lib/shilling/version.rb
Defined Under Namespace
Classes: Configuration, Service, Tool
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
- .config ⇒ Object
-
.configure {|config| ... } ⇒ Object
lets you use Shilling.configure do |config| config.address = ‘Sepp’ end.
-
.main ⇒ Object
add command line binary (tool) e.g.
- .root ⇒ Object
Class Method Details
.config ⇒ Object
105 106 107 |
# File 'lib/shilling.rb', line 105 def self.config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
lets you use
Shilling.configure do |config|
config.address = 'Sepp'
end
101 102 103 |
# File 'lib/shilling.rb', line 101 def self.configure yield( config ) end |
.main ⇒ Object
add command line binary (tool) e.g. $ try shilling -h
111 112 113 |
# File 'lib/shilling.rb', line 111 def self.main Tool.new.run(ARGV) end |
.root ⇒ Object
7 8 9 |
# File 'lib/shilling/version.rb', line 7 def self.root "#{File.( File.dirname(File.dirname(File.dirname(__FILE__))) )}" end |