Sha256: 9a43c175ab9a03bd15241992d007c3768fcb5806177daa0dcc313769f0f9ef09

Contents?: true

Size: 374 Bytes

Versions: 9

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2020-2022, by Samuel Williams.

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

9 entries across 9 versions & 1 rubygems

Version Path
utopia-2.25.0 bake/utopia/shell.rb
utopia-2.24.4 bake/utopia/shell.rb
utopia-2.24.3 bake/utopia/shell.rb
utopia-2.24.1 bake/utopia/shell.rb
utopia-2.23.0 bake/utopia/shell.rb
utopia-2.22.2 bake/utopia/shell.rb
utopia-2.22.1 bake/utopia/shell.rb
utopia-2.22.0 bake/utopia/shell.rb
utopia-2.21.0 bake/utopia/shell.rb