Sha256: 2b5108ef65c24ac1ed68f60b6cf97fb237efc9c7ccf3028011ca992168470270

Contents?: true

Size: 655 Bytes

Versions: 18

Compression:

Stored size: 655 Bytes

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Generators
    # Create an class for generate who copy a default request
    class DefaultRequestGenerator < Rails::Generators::Base
      desc 'Copy base request file sending to janus in application.'

      # Define root path for original file a copied
      def self.source_root
        root_path = File.realpath(File.join(File.dirname(__FILE__), '..', '..', '..'))
        @_rrj_source_root ||= File.join(root_path, 'config')
      end

      # Copy default request in Rails app
      def copy_default_request
        directory 'requests', 'config/requests'
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-1.1.9 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.8 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.7 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.6 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.5 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.4 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.3 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.2 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.1 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.1.0 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.0.8 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.0.7 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.0.6 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.0.5 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.0.4 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.0.3 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.0.2 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb
ruby_rabbitmq_janus-1.0.1 lib/generators/ruby_rabbitmq_janus/default_request_generator.rb