Sha256: a4e32eb18267437d35ad395d0fc25554a893e33b6fe79c197e3c476cce84a8ab
Contents?: true
Size: 963 Bytes
Versions: 10
Compression:
Stored size: 963 Bytes
Contents
# frozen_string_literal: true require 'dotenv/load' require_relative '../../static/gem' require_relative '../../controllers/cartridges' require_relative '../../controllers/instance' require_relative '../../controllers/security' require_relative '../../controllers/interfaces/cli' require_relative '../../components/stream' module NanoBot def self.new(cartridge: '-', state: '-', environment: {}) Controllers::Instance.new( cartridge_path: cartridge, state:, stream: Components::Stream.new, environment: ) end def self.security Controllers::Security end def self.cartridges Controllers::Cartridges.all end def self.cli Controllers::Interfaces::CLI.handle! end def self.repl(cartridge: '-', state: '-', environment: {}) Controllers::Instance.new( cartridge_path: cartridge, state:, stream: $stdout, environment: ).repl end def self.version NanoBot::GEM[:version] end end
Version data entries
10 entries across 10 versions & 1 rubygems