Skip to content

Commit

Permalink
Refactor this gem as a plugin of matrixeval
Browse files Browse the repository at this point in the history
  • Loading branch information
hoppergee committed Feb 26, 2022
1 parent cee3a72 commit 2203e1a
Show file tree
Hide file tree
Showing 43 changed files with 205 additions and 2,535 deletions.
5 changes: 0 additions & 5 deletions exe/matrixeval

This file was deleted.

5 changes: 0 additions & 5 deletions exe/meval

This file was deleted.

26 changes: 5 additions & 21 deletions lib/matrixeval/ruby.rb
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
# frozen_string_literal: true

require_relative "ruby/version"
require 'rainbow'
require 'matrixeval/ruby/docker_compose'
require 'matrixeval/ruby/context'
require 'matrixeval/ruby/gemfile_locks'
require 'matrixeval/ruby/extra_mount_files'
require 'matrixeval/ruby/runner'
require 'matrixeval/ruby/gitignore'
require 'matrixeval'
require_relative 'ruby/version'
require_relative 'ruby/target'

module Matrixeval
module Ruby
class Error < StandardError; end

module_function
def root
Pathname.new("#{__dir__}/../..")
end
end

module_function
def start(argv)
Ruby::Runner.start(argv)
end

def working_dir
Pathname.new(Dir.getwd)
end
end

Matrixeval.register_target(:ruby, Matrixeval::Ruby::Target)
57 changes: 0 additions & 57 deletions lib/matrixeval/ruby/command_line.rb

This file was deleted.

85 changes: 0 additions & 85 deletions lib/matrixeval/ruby/command_line/parse_context_arguments.rb

This file was deleted.

98 changes: 0 additions & 98 deletions lib/matrixeval/ruby/config.rb

This file was deleted.

40 changes: 0 additions & 40 deletions lib/matrixeval/ruby/config/yaml.rb

This file was deleted.

15 changes: 0 additions & 15 deletions lib/matrixeval/ruby/container.rb

This file was deleted.

Loading

0 comments on commit 2203e1a

Please sign in to comment.