Sha256: 4dde8bcfd6ff843f18dd295af112ef26ab4c58bc0948b376ef3b6fdf2f7167b1

Contents?: true

Size: 377 Bytes

Versions: 6

Compression:

Stored size: 377 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

6 entries across 6 versions & 1 rubygems

Version Path
yahoo_weather-1.2.0 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.1.1 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.1.0 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.0.7 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.0.6 lib/generators/yahoo_weather/copy_locale_generator.rb
yahoo_weather-1.0.5 lib/generators/yahoo_weather/copy_locale_generator.rb