Sha256: d8c67ae66ad6160026f024b0f87b33aa42593083bd1c8f563e4a40b191485055

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

module Gemsmith
  module Skeletons
    # Configures Guard support.
    class GuardSkeleton < BaseSkeleton
      def enabled?
        cli.template_options.key?(:guard) && cli.template_options[:guard]
      end

      def create
        return unless enabled?
        cli.template "%gem_name%/Guardfile.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/guard_skeleton.rb
gemsmith-5.5.0 lib/gemsmith/skeletons/guard_skeleton.rb
gemsmith-5.4.0 lib/gemsmith/skeletons/guard_skeleton.rb