Sha256: f660d4ed1e28da0be7cfcab0c26cc7e44f9ec9600d859cd3a923f67f4926df63

Contents?: true

Size: 425 Bytes

Versions: 114

Compression:

Stored size: 425 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
#!/usr/bin/env ruby

# 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

114 entries across 114 versions & 1 rubygems

Version Path
checkoff-0.93.0 lib/checkoff/internal/create-class.sh
checkoff-0.92.0 lib/checkoff/internal/create-class.sh
checkoff-0.91.0 lib/checkoff/internal/create-class.sh
checkoff-0.90.0 lib/checkoff/internal/create-class.sh
checkoff-0.89.0 lib/checkoff/internal/create-class.sh
checkoff-0.88.0 lib/checkoff/internal/create-class.sh
checkoff-0.87.0 lib/checkoff/internal/create-class.sh
checkoff-0.86.0 lib/checkoff/internal/create-class.sh
checkoff-0.85.0 lib/checkoff/internal/create-class.sh
checkoff-0.84.0 lib/checkoff/internal/create-class.sh
checkoff-0.83.0 lib/checkoff/internal/create-class.sh
checkoff-0.82.0 lib/checkoff/internal/create-class.sh
checkoff-0.69.0 lib/checkoff/internal/create-class.sh
checkoff-0.68.0 lib/checkoff/internal/create-class.sh
checkoff-0.67.1 lib/checkoff/internal/create-class.sh
checkoff-0.67.0 lib/checkoff/internal/create-class.sh
checkoff-0.66.0 lib/checkoff/internal/create-class.sh
checkoff-0.65.0 lib/checkoff/internal/create-class.sh
checkoff-0.64.1 lib/checkoff/internal/create-class.sh
checkoff-0.64.0 lib/checkoff/internal/create-class.sh