Module: BigBrother

Defined in:
lib/big_brother.rb,
lib/big_brother/app.rb,
lib/big_brother/cli.rb,
lib/big_brother/ipvs.rb,
lib/big_brother/node.rb,
lib/big_brother/logger.rb,
lib/big_brother/nagios.rb,
lib/big_brother/ticker.rb,
lib/big_brother/cluster.rb,
lib/big_brother/version.rb,
lib/big_brother/status_file.rb,
lib/big_brother/configuration.rb,
lib/big_brother/health_fetcher.rb,
lib/big_brother/shell_executor.rb,
lib/big_brother/cluster_collection.rb

Defined Under Namespace

Classes: App, CLI, Cluster, ClusterCollection, Configuration, HealthFetcher, IPVS, Logger, Nagios, Node, ShellExecutor, StatusFile, Ticker

Constant Summary collapse

VERSION =
"0.6.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clustersObject

Returns the value of attribute clusters.



30
31
32
# File 'lib/big_brother.rb', line 30

def clusters
  @clusters
end

.config_dirObject

Returns the value of attribute config_dir.



30
31
32
# File 'lib/big_brother.rb', line 30

def config_dir
  @config_dir
end

.ipvsObject

Returns the value of attribute ipvs.



30
31
32
# File 'lib/big_brother.rb', line 30

def ipvs
  @ipvs
end

.loggerObject

Returns the value of attribute logger.



30
31
32
# File 'lib/big_brother.rb', line 30

def logger
  @logger
end

.nagiosObject

Returns the value of attribute nagios.



30
31
32
# File 'lib/big_brother.rb', line 30

def nagios
  @nagios
end

Class Method Details

.configure(filename) ⇒ Object



38
39
40
41
# File 'lib/big_brother.rb', line 38

def self.configure(filename)
  @config_file = filename
  @clusters.config(BigBrother::Configuration.from_file(filename))
end

.reconfigureObject



47
48
49
50
51
# File 'lib/big_brother.rb', line 47

def self.reconfigure
  Ticker.pause do
    configure(@config_file)
  end
end

.start_ticker!Object



43
44
45
# File 'lib/big_brother.rb', line 43

def self.start_ticker!
  Ticker.schedule!
end