Sha256: c9877a0004aea9628e25d94c4633bd1730a93157ef0a89cbbda6158b5f5fabf1
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
# encoding: utf-8 require 'generators/generators' require 'fileutils' module Dslable::Generators # Dslable::Generators Gem Template Generator class GemTemplate attr_accessor :dsl #== initialize generate gem template #=== Params #- _dsl: input from dsl def initialize(_dsl) @dsl = _dsl end #== generate gem template def generate `bundle gem #{@dsl._gem_name}` Dir.chdir(@dsl._gem_name) FileUtils.rm_rf("./lib/#{@dsl._gem_name}.rb") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dslable-0.0.2 | lib/generators/gem_template.rb |
dslable-0.0.1 | lib/generators/gem_template.rb |