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