Sha256: c9dc98ca2677be78cd553ef7bd7f1fae61c26f9d64462d023714de1ebe7890a8

Contents?: true

Size: 1.16 KB

Versions: 24

Compression:

Stored size: 1.16 KB

Contents

module BestBoy
  module Generators
    class BestBoyGenerator < Rails::Generators::Base
      hook_for :orm
      source_root File.expand_path('../templates', __FILE__)

      class_option :asset_pipeline, :type => :string, :aliases => "-a", :desc => "skip template creation due asset pipeline use", :default => "asset"
      class_option :asset, :type => :boolean, :default => false

      def copy_config_file
        template 'best_boy.rb', 'config/initializers/best_boy.rb'
        if not options[:asset_pipeline] == "asset" or not options[:asset]
          template 'bootstrap/glyphicons-halflings-white.png', 'public/images/bootstrap/glyphicons-halflings-white.png'
          template 'bootstrap/glyphicons-halflings.png', 'public/images/bootstrap/glyphicons-halflings.png'
          template 'bootstrap/bootstrap.css', 'public/stylesheets/bootstrap.css'
          #datepicker by Stefan Petre (http://www.eyecon.ro/bootstrap-datepicker)
          template 'bootstrap/bootstrap_datepicker.css', 'public/stylesheets/bootstrap_datepicker.css' 
          template 'bootstrap/bootstrap_datepicker.js', 'public/javascripts/bootstrap_datepicker.js'
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
best_boy-2.2.3 lib/generators/best_boy_generator.rb
best_boy-2.2.2 lib/generators/best_boy_generator.rb
best_boy-2.2.1 lib/generators/best_boy_generator.rb
best_boy-2.2.0 lib/generators/best_boy_generator.rb
best_boy-2.1.4 lib/generators/best_boy_generator.rb
best_boy-2.1.3 lib/generators/best_boy_generator.rb
best_boy-2.1.2 lib/generators/best_boy_generator.rb
best_boy-2.1.1 lib/generators/best_boy_generator.rb
best_boy-2.1.0 lib/generators/best_boy_generator.rb
best_boy-2.0.3 lib/generators/best_boy_generator.rb
best_boy-2.0.2 lib/generators/best_boy_generator.rb
best_boy-2.0.0 lib/generators/best_boy_generator.rb
best_boy-1.3.0 lib/generators/best_boy_generator.rb
best_boy-1.2.0 lib/generators/best_boy_generator.rb
best_boy-1.1.1 lib/generators/best_boy_generator.rb
best_boy-1.1.0 lib/generators/best_boy_generator.rb
best_boy-1.0.3 lib/generators/best_boy_generator.rb
best_boy-1.0.2 lib/generators/best_boy_generator.rb
best_boy-1.0.1 lib/generators/best_boy_generator.rb
best_boy-1.0.0 lib/generators/best_boy_generator.rb