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

Class Method Details

.configObject



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

Yields:



101
102
103
# File 'lib/shilling.rb', line 101

def self.configure
  yield( config )
end

.mainObject

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

.rootObject



7
8
9
# File 'lib/shilling/version.rb', line 7

def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
end