Sha256: c7139ad7f522e82a66674fb53d5ef5ed7f71af72d01db666f536a2f2f8d7d5db

Contents?: true

Size: 643 Bytes

Versions: 2

Compression:

Stored size: 643 Bytes

Contents

require 'rails/generators'

module Staple
  class ResetGenerator < Rails::Generators::Base
    desc 'bring in the staple'
    source_root File.join(File.dirname(__FILE__), '..', '..')
    argument :actions, :type => :array, :default => []

    def reset
        components = %w(buttons colors forms tables typography sizes)
        components.each do |c|
            copy_file "source/styles/staple/#{c}.scss", "app/assets/stylesheets/staple/#{c}.scss", :force => true
            copy_file "source/styles/staple/builders/build_#{c}.scss", "app/assets/stylesheets/staple/builders/build_#{c}.scss", :force => true
        end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staple-0.4.3 lib/staple/reset_generator.rb
staple-0.4.2 lib/staple/reset_generator.rb