Class: FReCon::Console

Inherits:
Object show all
Defined in:
lib/frecon/console.rb

Overview

Public: The wrapper system for a pry console.

Class Method Summary collapse

Class Method Details

.start(configuration: Configuration.construct!) ⇒ Object

Public: Starts the FReCon console.

:configuration - The Configuration to use when starting the console.

Returns the result of running pry on FReCon.



23
24
25
26
27
28
29
30
31
# File 'lib/frecon/console.rb', line 23

def self.start(configuration: Configuration.construct!)
	environment = configuration["frecon"]["console"]["environment"]
	mongoid = configuration["frecon"]["database"]["mongoid"]
	Database.setup(environment, mongoid)

	require "pry"

	FReCon.pry
end