Sha256: 8f9a6bc40a6aeaf74689025da6ddffc1ac9c58f4c7ad5d47f56929f769dfef19

Contents?: true

Size: 689 Bytes

Versions: 10

Compression:

Stored size: 689 Bytes

Contents

require 'rails/generators/active_record'

module BigbluebuttonRails
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      source_root File.expand_path("../../../../app", __FILE__)
      desc "Copies all bigbluebutton_rails views into your application folders."

      argument :scope, :required => false, :default => nil,
                       :desc => "The scope to copy views to"

      def copy_views
        directory "views/bigbluebutton", "app/views/#{ scope || :bigbluebutton}"
      end

      def copy_stylesheets
        copy_file "assets/stylesheets/bigbluebutton_rails.css", "app/assets/stylesheets/bigbluebutton_rails.css"
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bigbluebutton_rails-3.0.0 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-2.3.0 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-2.2.0 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-2.1.0 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-2.0.0 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-1.3.0.mweb1 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-1.4.0 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-1.4.0.beta1 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-1.3.0 lib/generators/bigbluebutton_rails/views_generator.rb
bigbluebutton_rails-1.3.0.beta1 lib/generators/bigbluebutton_rails/views_generator.rb