Sha256: 13984a9915df01d7805b964a9090c9996c121353b0702e8dcf731117e67c897a

Contents?: true

Size: 376 Bytes

Versions: 8

Compression:

Stored size: 376 Bytes

Contents

require_relative "../base"

module Hexx
  module Generators

    # Use case scaffolder.
    class Domain < Base

      def self.source_root
        super __FILE__
      end

      def add_spec
        template "spec.erb", "spec/#{ domain_path }/#{ file_name }_spec.rb"
      end

      private

      def domain_path
        "domain/#{ gem_name }"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hexx-1.1.1 lib/generators/domain/domain.rb
hexx-1.1.0 lib/generators/domain/domain.rb
hexx-1.0.2 lib/generators/domain/domain.rb
hexx-1.0.1 lib/generators/domain/domain.rb
hexx-1.0.0 lib/generators/domain/domain.rb
hexx-0.1.1 lib/generators/domain/domain.rb
hexx-0.1.0 lib/generators/domain/domain.rb
hexx-0.0.1 lib/generators/domain/domain.rb