diff options
author | icebaker <113217272+icebaker@users.noreply.github.com> | 2024-01-10 22:02:42 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 22:02:42 -0300 |
commit | 50677c9b2ab6ce8f6fe232834f139f1e16f0e079 (patch) | |
tree | 866218debc763547818de0099098bc5fe2ae29c7 /ports | |
parent | 819381e7bd3e3ca5d310ad0a29b6925dcfa26720 (diff) | |
parent | aabf3d9b711f66fe4195a8c850856826c7ad5580 (diff) |
Merge pull request #15 from icebaker/ib-markdown
Adding support to Markdown Cartridges
Diffstat (limited to 'ports')
-rw-r--r-- | ports/dsl/nano-bots.rb | 3 | ||||
-rw-r--r-- | ports/dsl/nano-bots/cartridges.rb | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/ports/dsl/nano-bots.rb b/ports/dsl/nano-bots.rb index e01b2c4..20d8f14 100644 --- a/ports/dsl/nano-bots.rb +++ b/ports/dsl/nano-bots.rb @@ -8,6 +8,7 @@ require_relative '../../controllers/instance' require_relative '../../controllers/security' require_relative '../../controllers/interfaces/cli' require_relative '../../components/stream' +require_relative 'nano-bots/cartridges' module NanoBot def self.new(cartridge: '-', state: '-', environment: {}) @@ -24,7 +25,7 @@ module NanoBot end def self.cartridges - Controllers::Cartridges.all + Cartridges end def self.cli diff --git a/ports/dsl/nano-bots/cartridges.rb b/ports/dsl/nano-bots/cartridges.rb new file mode 100644 index 0000000..fb23c39 --- /dev/null +++ b/ports/dsl/nano-bots/cartridges.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +require_relative '../../../controllers/cartridges' + +module NanoBot + module Cartridges + def self.all(components: {}) + Controllers::Cartridges.all(components:) + end + + def self.load(path) + Controllers::Cartridges.load(path) + end + end +end |