Sha256: a232b55a17db8508de656bb8c7e1e7b8831e1d00312644b38ad71a74fe472a09

Contents?: true

Size: 602 Bytes

Versions: 2

Compression:

Stored size: 602 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

2 entries across 2 versions & 1 rubygems

Version Path
dslable-0.0.2 lib/generators/rspec/specs.rb
dslable-0.0.1 lib/generators/rspec/specs.rb