Sha256: 67f81262bb4773b6607d27946807ff45d3c3a41552c38631e6a607869cbe4c23

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

# A rails generator `telphin_api:install`.
# It creates a config file in `config/initializers/telphin_api.rb`.
class TelphinApi::InstallGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)
  
  # Creates the config file.
  def create_initializer
    copy_file 'initializer.rb', 'config/initializers/telphin_api.rb'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
telphin_api-1.0.4 lib/generators/telphin_api/install/install_generator.rb
telphin_api-1.0.3 lib/generators/telphin_api/install/install_generator.rb
telphin_api-1.0.2 lib/generators/telphin_api/install/install_generator.rb
telphin_api-1.0.1 lib/generators/telphin_api/install/install_generator.rb
telphin_api-1.0.0 lib/generators/telphin_api/install/install_generator.rb