Class: DaemonKit::Generators::SpecGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/daemon_kit/rspec/rspec_generator.rb

Instance Method Summary (collapse)

Methods inherited from Base

desc

Instance Method Details

- (Object) create_specs



11
12
13
# File 'lib/generators/daemon_kit/rspec/rspec_generator.rb', line 11

def create_specs
  directory 'spec'
end

- (Object) create_task



15
16
17
# File 'lib/generators/daemon_kit/rspec/rspec_generator.rb', line 15

def create_task
  directory 'tasks'
end

- (Object) update_gemfile



5
6
7
8
9
# File 'lib/generators/daemon_kit/rspec/rspec_generator.rb', line 5

def update_gemfile
  append_file 'Gemfile' do
    %Q{group :development, :test do\n  gem 'rake'\n  gem 'rspec' \nend}
  end
end