lib/hexx/suit/install.rb in hexx-suit-0.2.2 vs lib/hexx/suit/install.rb in hexx-suit-1.0.0
- old
+ new
@@ -1,6 +1,9 @@
+# encoding: utf-8
+
module Hexx
+
module Suit
# The generator creates a Rakefile in a destination root
class Install < Thor::Group
include Thor::Actions
@@ -13,82 +16,48 @@
#
# @return [undefined]
#
# @api public
- # Root folder for the generator's templates
- #
- # @return [String]
- #
- # @api private
+ # @private
def self.source_root
@source_root ||= File.expand_path "../install", __FILE__
end
namespace :install
desc "Installs the 'hexx-suit' gem."
- # Creates the Rakefile
- #
- # @return [undefined]
- #
- # @api private
- def create_rakefile
- copy_file "Rakefile"
+ # @private
+ def install_rspec
+ Hexx::RSpec::Install.start
end
- # Creates the Guardfile
- #
- # @return [undefined]
- #
- # @api private
+ # @private
def create_guardfile
copy_file "Guardfile"
end
- # Creates the .rspec settings
- #
- # @return [undefined]
- #
- # @api private
- def create_rspec
- copy_file "_rspec", ".rspec"
- end
-
- # Creates the .yardopts settings
- #
- # @return [undefined]
- #
- # @api private
+ # @private
def create_yardopts
copy_file "_yardopts", ".yardopts"
end
- # creates the metric settings
- #
- # @return [undefined]
- #
- # @api private
+ # @private
def create_metrics
directory "metrics", "config/metrics"
end
- # creates metric_fu loader
- #
- # @return [undefined]
- #
- # @api private
+ # @private
def create_metrics_loader
copy_file "_metrics", ".metrics"
end
- # creates metric_fu loader
- #
- # @return [undefined]
- #
- # @api private
+ # @private
def create_rubocop_loader
copy_file "_rubocop.yml", ".rubocop.yml"
end
+
end # class Install
+
end # module Suit
+
end # module Hexx