Sha256: ac4f74f1bea0fc97c959d616d05f11e6d0bfc9727940b663a3538cc5fad070d0

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

module MarkdownToolbar
  class CopyButtonsGenerator < ::Rails::Generators::Base

    source_root File.expand_path('../../../../vendor/assets', __FILE__)    
    desc "Copies toolbar-buttons.js so you can create new buttons or reorder them"
    
    def copy_buttons
      say_status("copying", "markdown-toolbar-buttons.js", :green)
      copy_file "javascripts/markdown-toolbar-buttons.js", "app/assets/javascripts/markdown-toolbar-buttons.js"
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
markdown-toolbar-1.0.1 lib/generators/markdown_toolbar/copy_buttons_generator.rb
markdown-toolbar-1.0.0 lib/generators/markdown_toolbar/copy_buttons_generator.rb
markdown-toolbar-0.2.4 lib/generators/markdown_toolbar/copy_buttons_generator.rb