Sha256: 4960be0fd789d6d65260e34a9252c837be75cae7943a0cae2de088f61385db80
Contents?: true
Size: 603 Bytes
Versions: 3
Compression:
Stored size: 603 Bytes
Contents
require 'tempfile' require 'pathname' require 'yaml' require 'fileutils' module Helpers module Generator ROOT = File.join(Dir.tmpdir,'ore') def generate!(path,options={}) path = File.join(ROOT,path) Ore::Generator.new( [path], options.merge(:quiet => true) ).invoke_all @path = Pathname.new(path) @gemspec = YAML.load_file(@path.join('gemspec.yml')) end def rspec_opts @path.join('.rspec').read end def yard_opts @path.join('.yardopts').read end def cleanup! FileUtils.rm_r(ROOT) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ore-0.4.0 | spec/helpers/generator.rb |
ore-0.3.0 | spec/helpers/generator.rb |
ore-0.2.3 | spec/helpers/generator.rb |