Sha256: d390743972e716d89b5ec98d2148c18c280c0258deb254b25ccdb898ca15f803

Contents?: true

Size: 632 Bytes

Versions: 1

Compression:

Stored size: 632 Bytes

Contents

# encoding: utf-8
require 'generators/generators'

module Dslable::Generators::RSpec
  # Dslable::Generators::RSpec Specs Generator specs
  class Specs
    attr_accessor :dsl

    # == initialize generate specs
    # === Params
    #- _dsl: input from dsl
    def initialize(_dsl)
      @dsl = _dsl
    end

    # == generate specs
    def generate
      generate_core
    end

    def generate_core
      core_class_name = "#{@dsl.camelized_gem_name}::Core"
      core_class_file_name = "#{@dsl._gem_name}_core"
      `piccolo e #{core_class_name} #{core_class_file_name} init execute`
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dslable-0.0.3 lib/generators/rspec/specs.rb