Sha256: 7b34e78a3bf35eab8fac4babeca196ea9f5acf730b95d5a52f51eebf113b19e5
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
# encoding: utf-8 module Hexx module RSpec # The generator creates a Rakefile in a destination root class Install < Thor::Group include Thor::Actions # @!scope class # @!method start # Populates files into current directory # # @return [undefined] # # @api public class_option( :rakefile, default: true, desc: "Create the Rakefile", type: :boolean ) # @private def self.source_root @source_root ||= File.expand_path "../install", __FILE__ end namespace :install desc "Installs the 'hexx-rspec' gem." # @private def create_rakefile return unless options[:rakefile] copy_file "Rakefile" end # @private def create_rspec copy_file "_rspec", ".rspec" end # @private def create_simplecov copy_file "simplecov.yml", "config/metrics/simplecov.yml" end # @private def create_spec_helper template "spec_helper.erb", "spec/spec_helper.rb" end private def gemname @gemname ||= ::File.basename(destination_root).downcase end end # class Install end # module RSpec end # module Hexx
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hexx-rspec-0.5.2 | lib/hexx-rspec/install.rb |
hexx-rspec-0.5.1 | lib/hexx-rspec/install.rb |