Sha256: 66d8578fe269bf10a6c475ecdf9bc5b479484fe75f011073d0c2042952444d86

Contents?: true

Size: 364 Bytes

Versions: 3

Compression:

Stored size: 364 Bytes

Contents

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
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gemsmith-5.6.0 lib/gemsmith/skeletons/travis_skeleton.rb
gemsmith-5.5.0 lib/gemsmith/skeletons/travis_skeleton.rb
gemsmith-5.4.0 lib/gemsmith/skeletons/travis_skeleton.rb