Sha256: 6045a7adb4f1dde7df71bfa195dc76da57e83abc607b96e7c055bbd80333aad8

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

require 'rails/generators'

module Sunrise
  module Locales
    class InstallGenerator < Rails::Generators::Base      
      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

      desc "Generates CodeMirror js and css"
      
      def copy_js
        copy_file('codemirror.js', 'public/javascripts/codemirror.js')
        copy_file('yaml.js', 'public/javascripts/yaml.js')
      end
      
      def copy_css
        copy_file('codemirror.css', 'public/stylesheets/codemirror.css')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunrise-locales-0.1.0 lib/generators/sunrise/locales/install_generator.rb