Class: Medivo::Generators::AppointmentsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/medivo/appointments/appointments_generator.rb

Instance Method Summary collapse

Instance Method Details

#medivo_appointment_resource_fileObject



8
9
10
11
# File 'lib/generators/medivo/appointments/appointments_generator.rb', line 8

def medivo_appointment_resource_file
  Dir::mkdir('config/medivo') unless File.exists?('config/medivo')
  copy_file "appointment_resource.yml", "config/medivo/appointment_resource.yml"
end