Module: Heliosphere

Defined in:
lib/heliosphere.rb,
lib/heliosphere/rspec.rb,
lib/heliosphere/stubs.rb,
lib/heliosphere/config.rb,
lib/heliosphere/server.rb,
lib/heliosphere/indexer.rb,
lib/heliosphere/railtie.rb,
lib/heliosphere/version.rb,
lib/heliosphere/observer.rb

Defined Under Namespace

Modules: RSpec, Stubs Classes: Config, Indexer, Observer, Railtie, Server

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configObject



31
32
33
# File 'lib/heliosphere.rb', line 31

def self.config
  @config ||= Config.new
end

.indexerObject



3
4
5
# File 'lib/heliosphere/indexer.rb', line 3

def self.indexer
  @indexer ||= Indexer.new
end

.reindexObject



15
16
17
# File 'lib/heliosphere.rb', line 15

def self.reindex
  server.reindex
end

.serverObject



27
28
29
# File 'lib/heliosphere.rb', line 27

def self.server
  @server ||= Server.new(config.port)
end

.startObject



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

def self.start
  server.start
end

.stopObject



11
12
13
# File 'lib/heliosphere.rb', line 11

def self.stop
  server.stop
end

.up?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/heliosphere.rb', line 23

def self.up?
  server.up?
end

.wait(&block) ⇒ Object



19
20
21
# File 'lib/heliosphere.rb', line 19

def self.wait(&block)
  server.wait(&block)
end