Sha256: 8f28d0bb1017441c364ba00833e493d953aae57e28000a2b4e667e56604aee05

Contents?: true

Size: 404 Bytes

Versions: 107

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

107 entries across 107 versions & 1 rubygems

Version Path
checkoff-0.166.0 lib/checkoff/internal/create-class.sh
checkoff-0.165.0 lib/checkoff/internal/create-class.sh
checkoff-0.164.0 lib/checkoff/internal/create-class.sh
checkoff-0.163.0 lib/checkoff/internal/create-class.sh
checkoff-0.162.0 lib/checkoff/internal/create-class.sh
checkoff-0.161.0 lib/checkoff/internal/create-class.sh
checkoff-0.160.0 lib/checkoff/internal/create-class.sh
checkoff-0.159.0 lib/checkoff/internal/create-class.sh
checkoff-0.158.0 lib/checkoff/internal/create-class.sh
checkoff-0.157.0 lib/checkoff/internal/create-class.sh
checkoff-0.156.0 lib/checkoff/internal/create-class.sh
checkoff-0.155.0 lib/checkoff/internal/create-class.sh
checkoff-0.154.0 lib/checkoff/internal/create-class.sh
checkoff-0.153.0 lib/checkoff/internal/create-class.sh
checkoff-0.152.0 lib/checkoff/internal/create-class.sh
checkoff-0.151.0 lib/checkoff/internal/create-class.sh
checkoff-0.150.0 lib/checkoff/internal/create-class.sh
checkoff-0.149.0 lib/checkoff/internal/create-class.sh
checkoff-0.148.0 lib/checkoff/internal/create-class.sh
checkoff-0.147.0 lib/checkoff/internal/create-class.sh