Sha256: d821fb46023b8785bfebe4e86e6c226006e2f92ae5376539f184bcfb8d71c338
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true require "yaml" module RailsInteractive class CLI # Commands class for the interactive CLI module class Commands def initialize @commands = YAML.load_file("#{__dir__}/config/commands.yml").uniq end def all @commands end def find_by_identifier(identifier) @commands.find { |command| command["identifier"] == identifier } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-interactive-2.0.0 | lib/cli/commands.rb |