Sha256: 837a02c60d465d2d9e203cd0fa8470582ea1e9b088dd2ed4767f80da903c4352
Contents?: true
Size: 515 Bytes
Versions: 21
Compression:
Stored size: 515 Bytes
Contents
# -*- encoding : utf-8 -*- module Cardio module Generators # base class for mod-related generators class ModBase < ::Rails::Generators::NamedBase extend ClassMethods class_option "mod-path", aliases: "-m", group: :runtime, desc: "full path for mod" def mod_path @mod_path = if (path = options["mod-path"]) File.expand_path path else File.join "mod", file_name end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems