Sha256: 72fc46d127531ac5497714ff52d5788e7d8e393192c512b5f909cec28c3b4d9b

Contents?: true

Size: 502 Bytes

Versions: 2

Compression:

Stored size: 502 Bytes

Contents

require 'rails/generators/base'

module SimpleSwitch
  module Generators

    class InstallYamlGenerator < Rails::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)

      desc 'Copy feature configuration sample file feature_config_sample.yml to your application.'

      def copy_initializer
        copy_file 'feature_config_sample.yml',
                  "#{SimpleSwitch::feature_config_file_dir}/#{SimpleSwitch::feature_config_file_name}"
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_switch-0.2.0 lib/generators/simple_switch/install_yaml_generator.rb
simple_switch-0.1.0 lib/generators/simple_switch/install_yaml_generator.rb