Sha256: 35ac3fd2682d2d7eeb539a7fbda0593da0fd309936c8f3290f41444497781099
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
require 'shellwords' module ArSync class TypesGenerator < ::Rails::Generators::Base argument :output_dir, type: :string, desc: "output directory" def generate_typescript_files dir = ::Rails.root.join output_dir comment = "// generated by: rails generate ar_sync:types #{Shellwords.escape output_dir}\n\n" ArSync::TypeScript.generate_typed_files SyncApiController, dir: dir, comment: comment end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ar_sync-1.0.1 | lib/generators/ar_sync/types/types_generator.rb |
ar_sync-1.0.0 | lib/generators/ar_sync/types/types_generator.rb |