Class: AbstractFeatureBranch::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/abstract_feature_branch/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_configObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/generators/abstract_feature_branch/install_generator.rb', line 7

def copy_config
  template "lib/tasks/abstract_feature_branch.rake", "lib/tasks/abstract_feature_branch.rake"
  template "config/initializers/abstract_feature_branch.rb", "config/initializers/abstract_feature_branch.rb"
  template "config/features.example.yml", "config/features.yml"
  template "config/features.local.yml", "config/features.local.yml"
  append_to_file '.gitignore', <<-GIT_IGNORE_CONTENT

#abstract_feature_branch local configuration file
/config/features.local.yml
/config/features/*.local.yml
/config/features/**/*.local.yml
  GIT_IGNORE_CONTENT
end