Sha256: 7efe71e072ee56cf64becd0dd6e751b2067dde43a225117347995cfd8f654187

Contents?: true

Size: 351 Bytes

Versions: 24

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

# Start an interactive console for the web application.
def shell
	call 'utopia:environment'
	
	require 'utopia/shell'
	
	binding = Utopia::Shell.new(self.context).binding
	
	IRB.setup(binding.source_location[0], argv: [])
	workspace = IRB::WorkSpace.new(binding)
	
	irb = IRB::Irb.new(workspace)
	irb.run(IRB.conf)
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
utopia-2.20.1 bake/utopia/shell.rb
utopia-2.20.0 bake/utopia/shell.rb
utopia-2.19.2 bake/utopia/shell.rb
utopia-2.19.1 bake/utopia/shell.rb
utopia-2.19.0 bake/utopia/shell.rb
utopia-2.18.5 bake/utopia/shell.rb
utopia-2.18.4 bake/utopia/shell.rb
utopia-2.18.3 bake/utopia/shell.rb
utopia-2.18.2 bake/utopia/shell.rb
utopia-2.18.1 bake/utopia/shell.rb
utopia-2.18.0 bake/utopia/shell.rb
utopia-2.17.1 bake/utopia/shell.rb
utopia-2.17.0 bake/utopia/shell.rb
utopia-2.16.2 bake/utopia/shell.rb
utopia-2.16.1 bake/utopia/shell.rb
utopia-2.16.0 bake/utopia/shell.rb
utopia-2.15.1 bake/utopia/shell.rb
utopia-2.15.0 bake/utopia/shell.rb
utopia-2.14.0 bake/utopia/shell.rb
utopia-2.13.4 bake/utopia/shell.rb