Module: Fabriq

Extended by:
Fabriq
Included in:
Fabriq
Defined in:
lib/fabriq.rb,
lib/fabriq/cli.rb,
lib/fabriq/skype.rb,
lib/fabriq/adapter.rb,
lib/fabriq/logging.rb,
lib/fabriq/skype/room.rb,
lib/fabriq/plugin_port.rb,
lib/fabriq/skype_proxy.rb,
lib/fabriq/skype/message.rb,
lib/fabriq/adapter/rype_adapter.rb

Defined Under Namespace

Modules: Adapter, CLI, Logging, PluginPort, Skype Classes: SkypeProxy

Instance Method Summary collapse

Instance Method Details

#argvObject



29
30
31
# File 'lib/fabriq.rb', line 29

def argv
  ARGV
end

#bootObject



23
24
25
26
27
# File 'lib/fabriq.rb', line 23

def boot
  Fabriq::Config.load
  Fabriq::Adapter.load
  Fabriq::Adapter.run { load_environment }
end

#config {|Fabriq::Config| ... } ⇒ Object

Yields:

  • (Fabriq::Config)


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

def config(&block)
  yield Fabriq::Config
end

#load_environmentObject



33
34
35
36
37
38
39
# File 'lib/fabriq.rb', line 33

def load_environment
  if self.argv.size > 0
    Fabriq::CLI.run(self.argv)
  else
    Fabriq::PluginPort.initialize_plugins
  end
end

#rootObject



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

def root
  Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), "..")))
end