Sha256: 11d9660aa576b781462f514455392faa7842779ab6ad68f1fabd379408af4d4d

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 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
      
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
angular_velocity-0.0.3alpha lib/generators/angular_velocity/service/service_generator.rb