Sha256: f1eef6f28dc6a748a91c7899ed6405307633b1307a8a1ea795bb58122b76ab3f

Contents?: true

Size: 276 Bytes

Versions: 2

Compression:

Stored size: 276 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>Command < Slayer::Command
  def call(args:)
    return err unless args_valid?(args)

    transaction do
      # Do your database interaction here!
    end

    ok
  end

  def args_valid?(args)
    true
  end
end
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slayer_rails-0.5.4 lib/generators/command/templates/command.rb
slayer_rails-0.5.0.beta lib/generators/command/templates/command.rb