Sha256: 6c183158573150220330e4e843f38c6b07297d80f73c24e9bfc2994eeaa9e3b8

Contents?: true

Size: 373 Bytes

Versions: 5

Compression:

Stored size: 373 Bytes

Contents

module YahooWeather
  module Generators
    class CopyLocaleGenerator < Rails::Generators::Base
      source_root File.expand_path(__FILE__)
      argument :locale, type: :string, default: 'en'
      def copy_locale
        copy_file "../../../../config/locales/#{locale.underscore}.yml", "config/locales/yahoo_weather.#{locale.underscore}.yml"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yahoo_weather-1.0.4 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.0.3 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.0.2 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.0.1 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.0.0 lib/generators/yahoo_weather/copy_locale_generator.rb