Sha256: 1a501b86e1ffb5ff3a9e746e5cbd4f1898a4de51a1ac61a822d2e1287d7a9e98
Contents?: true
Size: 692 Bytes
Versions: 14
Compression:
Stored size: 692 Bytes
Contents
# frozen_string_literal: true require "rails/generators" module RailsTemplate18f module Generators class CloudGovConfigGenerator < ::Rails::Generators::Base include Base desc <<~DESC Description: Install a helper class to retrieve configuration from ENV["VCAP_SERVICES"] DESC def install_climate_control return if gem_installed?("climate_control") gem_group :test do gem "climate_control", "~> 1.0" end bundle_install end def install_model_and_test copy_file "app/models/cloud_gov_config.rb" copy_file "spec/models/cloud_gov_config_spec.rb" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems