Sha256: 1df7663fee362d983a0f3abb2a84fe981496cd72ef58fc38f4fbccb0ba0b3893

Contents?: true

Size: 627 Bytes

Versions: 3

Compression:

Stored size: 627 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} execute`
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dslable-0.0.6 lib/generators/rspec/specs.rb
dslable-0.0.5 lib/generators/rspec/specs.rb
dslable-0.0.4 lib/generators/rspec/specs.rb