Sha256: 8f28d0bb1017441c364ba00833e493d953aae57e28000a2b4e667e56604aee05

Contents?: true

Size: 404 Bytes

Versions: 82

Compression:

Stored size: 404 Bytes

Contents

#!/bin/bash -eu

set -o pipefail

underscored_plural_name="${1:?underscored plural name of entities minus .rb}"
class_name="${2:?class name without Checkoff:: prefix}"

cat > "${underscored_plural_name}.rb" << EOF
# frozen_string_literal: true

module Checkoff
  module Internal
    class ${class_name}
      def initialize(_deps = {}); end
    end
  end
end
EOF

git add "${underscored_plural_name}.rb"

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
checkoff-0.201.0 lib/checkoff/internal/create-class.sh
checkoff-0.200.0 lib/checkoff/internal/create-class.sh
checkoff-0.199.0 lib/checkoff/internal/create-class.sh
checkoff-0.198.0 lib/checkoff/internal/create-class.sh
checkoff-0.197.0 lib/checkoff/internal/create-class.sh
checkoff-0.196.0 lib/checkoff/internal/create-class.sh
checkoff-0.195.0 lib/checkoff/internal/create-class.sh
checkoff-0.194.0 lib/checkoff/internal/create-class.sh
checkoff-0.193.0 lib/checkoff/internal/create-class.sh
checkoff-0.192.0 lib/checkoff/internal/create-class.sh
checkoff-0.191.0 lib/checkoff/internal/create-class.sh
checkoff-0.190.0 lib/checkoff/internal/create-class.sh
checkoff-0.189.0 lib/checkoff/internal/create-class.sh
checkoff-0.188.0 lib/checkoff/internal/create-class.sh
checkoff-0.187.0 lib/checkoff/internal/create-class.sh
checkoff-0.186.0 lib/checkoff/internal/create-class.sh
checkoff-0.185.0 lib/checkoff/internal/create-class.sh
checkoff-0.184.0 lib/checkoff/internal/create-class.sh
checkoff-0.183.0 lib/checkoff/internal/create-class.sh
checkoff-0.182.0 lib/checkoff/internal/create-class.sh