Module: Stationed::Generators::Plugins::Guard

Included in:
AppGenerator
Defined in:
lib/stationed/generators/plugins/guard.rb

Instance Method Summary collapse

Instance Method Details

#finish_templateObject



5
6
7
8
9
10
11
12
13
# File 'lib/stationed/generators/plugins/guard.rb', line 5

def finish_template
  gem_group :development do
    gem 'guard'
    gem 'guard-rspec'
    gem 'guard-livereload'
    gem 'terminal-notifier-guard'
  end
  super
end

#run_bundleObject



15
16
17
18
19
20
21
22
# File 'lib/stationed/generators/plugins/guard.rb', line 15

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