Sha256: 9306de739313d2532c314ba217803e4324d43e7018fb126602f177f94c20984d

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module Guard
        def finish_template
          gem_group :development do
            gem 'guard'
            gem 'guard-rspec'
            gem 'guard-livereload'
            gem 'terminal-notifier-guard'
          end
          super
        end

        def run_bundle
          super
          run 'bundle exec guard init rspec'
          run 'bundle exec guard init livereload'
          gsub_file 'Guardfile',
                    /guard :rspec do/,
                    "guard :rspec, cmd: 'spring rspec' do"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stationed-0.0.1 lib/stationed/generators/plugins/guard.rb