Sha256: dbb48746261564fa9d4cf186bcabdc1736ccc42e42b775c08164105f39f7cf57
Contents?: true
Size: 692 Bytes
Versions: 4
Compression:
Stored size: 692 Bytes
Contents
require 'generators/angular_velocity/angular_config' #Rails.root.join('public','images','logo.png') module AngularVelocity module Generators class ServiceGenerator < Rails::Generators::NamedBase include AngularVelocity::Generators::AngularConfig source_root File.expand_path('../templates', __FILE__) desc "This generator creates an angular service" def create_angular_service template "service.coffee", "#{angular_path}/services/#{file_name}_service.coffee" end def create_angular_service_spec template "service_spec.coffee", "#{angular_spec_path}/services/#{file_name}_service_spec.coffee" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems