Skip to content
Snippets Groups Projects
Commit d726573d authored by Dean Lovett's avatar Dean Lovett
Browse files

chore: added templates and removed old gemspec

parent 2537b551
No related branches found
No related tags found
No related merge requests found
Gem::Specification.new do |spec|
spec.name = "cqrs-generators"
spec.version = "0.0.1"
spec.authors = ["Dean Lovett"]
spec.email = ["dean.lovett@nexusmods.com"]
spec.summary = %q{Simple generators for CQRS Commands and Queries.}
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
spec.metadata["homepage_uri"] = spec.homepage
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
end
module Commands
class <%= class_name %> < BaseCommand
# Define attributes for this command
attr_accessor :id
# Define the constructor
def initialize(id)
@id = id
end
end
end
\ No newline at end of file
module Commands
class <%= class_name %>Handler < BaseCommandHandler
# call is where the Command is executed
def call(command)
end
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment