lib/gemsmith/skeletons/travis_skeleton.rb in gemsmith-5.6.0 vs lib/gemsmith/skeletons/travis_skeleton.rb in gemsmith-6.0.0
- old
+ new
@@ -1,15 +1,11 @@
module Gemsmith
module Skeletons
# Configures Travis CI support.
class TravisSkeleton < BaseSkeleton
- def enabled?
- cli.template_options.key?(:travis) && cli.template_options[:travis]
- end
-
def create
- return unless enabled?
- cli.template "%gem_name%/.travis.yml.tt", cli.template_options
+ return unless configuration.create_travis?
+ cli.template "%gem_name%/.travis.yml.tt", configuration.to_h
end
end
end
end