Class: Qa::ApidocGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/qa/apidoc/apidoc_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_to_gemfileObject



11
12
13
14
15
16
17
# File 'lib/generators/qa/apidoc/apidoc_generator.rb', line 11

def add_to_gemfile
  gem 'swagger-docs'

  Bundler.with_clean_env do
    run "bundle install"
  end
end

#copy_api_docsObject



19
20
21
# File 'lib/generators/qa/apidoc/apidoc_generator.rb', line 19

def copy_api_docs
  directory "public/qa/apidoc", recursive: false
end