Sha256: de7271c3de76ba8270942c941051e5201e9a72bcd5a12d90e4593a7692cce7fb

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

require 'securerandom'

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

      desc 'Creates a local configuration file and the default JSON file for Bower to use in your application.'

      def create_components_directory
        empty_directory 'bower_components'
      end

      def copy_component_json
        copy_file 'bower.json', 'bower.json'
      end

      def copy_config
        copy_file 'bowerrc', '.bowerrc'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bower-0.0.5 lib/generators/bower/install_generator.rb