Sha256: 7262fb597fe7ee8d705e52fcd5a60a3ccd73571c2eefc5c1d9d4a592ba3857df
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hexx-rspec-0.4.2 | lib/hexx/rspec/install.rb |
hexx-rspec-0.4.1 | lib/hexx/rspec/install.rb |
hexx-rspec-0.4.0 | lib/hexx/rspec/install.rb |