Sha256: ded28484a81b46074d0587289ab718f57a14ab40649b088a34257c7021af6d98

Contents?: true

Size: 922 Bytes

Versions: 16

Compression:

Stored size: 922 Bytes

Contents

module AbstractFeatureBranch
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "Installs Abstract Feature Branch by generating basic configuration files, including git ignored local one."
      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
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
abstract_feature_branch-1.6.0 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.5.1 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.5.0 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.4.0 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.3.3 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.3.2 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.3.1 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.3.0 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.2.2 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.2.1 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.2.0 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.1.1 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.1.0 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-1.0.0 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-0.9.0 lib/generators/abstract_feature_branch/install_generator.rb
abstract_feature_branch-0.8.0 lib/generators/abstract_feature_branch/install_generator.rb