Sha256: b92da6b55457a3f38f696fd45d33eee955e3a9219b5e3c63efbf11ecee603a9d
Contents?: true
Size: 494 Bytes
Versions: 21
Compression:
Stored size: 494 Bytes
Contents
module AbstractFeatureBranch module Generators class ContextGenerator < Rails::Generators::NamedBase source_root File.expand_path("../../templates", __FILE__) desc "Creates a configuration file for a specific application context (e.g. admin). Takes context path as argument (e.g. admin or internal/wiki) to create config/features/[context_path].yml" def copy_config template "config/features.yml", "config/features/#{file_path}.yml" end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
abstract_feature_branch-0.6.2 | lib/generators/abstract_feature_branch/context_generator.rb |