Sha256: cae10bdc950e0f4271464b6e3493b9ff0c90cf8ea527b313349718587e55816b
Contents?: true
Size: 617 Bytes
Versions: 5
Compression:
Stored size: 617 Bytes
Contents
# frozen_string_literal: true require_relative '../../command' module Vtk module Commands class Module # Adds a new module controller to vets-api class Controller < Vtk::Command attr_accessor :name, :options def initialize(name, options) @name = name @options = options super() end def execute(_input: $stdin, _output: $stdout) create_controller(name) end private def create_controller(name) system("rails g module_component #{name} controller") end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems