Module: PolishGeeks::DevTools

Defined in:
lib/polish_geeks/dev_tools.rb,
lib/polish_geeks/dev_tools/hash.rb,
lib/polish_geeks/dev_tools/shell.rb,
lib/polish_geeks/dev_tools/config.rb,
lib/polish_geeks/dev_tools/errors.rb,
lib/polish_geeks/dev_tools/logger.rb,
lib/polish_geeks/dev_tools/runner.rb,
lib/polish_geeks/dev_tools/version.rb,
lib/polish_geeks/dev_tools/commands/base.rb,
lib/polish_geeks/dev_tools/commands/yard.rb,
lib/polish_geeks/dev_tools/output_storer.rb,
lib/polish_geeks/dev_tools/commands/rspec.rb,
lib/polish_geeks/dev_tools/config_manager.rb,
lib/polish_geeks/dev_tools/validators/base.rb,
lib/polish_geeks/dev_tools/commands/gemfile.rb,
lib/polish_geeks/dev_tools/commands/rubocop.rb,
lib/polish_geeks/dev_tools/validators/rails.rb,
lib/polish_geeks/dev_tools/commands/brakeman.rb,
lib/polish_geeks/dev_tools/commands/haml_lint.rb,
lib/polish_geeks/dev_tools/commands/simplecov.rb,
lib/polish_geeks/dev_tools/validators/rubocop.rb,
lib/polish_geeks/dev_tools/commands/expires_in.rb,
lib/polish_geeks/dev_tools/commands/rubycritic.rb,
lib/polish_geeks/dev_tools/commands/yml_parser.rb,
lib/polish_geeks/dev_tools/validators/simplecov.rb,
lib/polish_geeks/dev_tools/commands/bundler_audit.rb,
lib/polish_geeks/dev_tools/commands/empty_methods.rb,
lib/polish_geeks/dev_tools/commands/required_files.rb,
lib/polish_geeks/dev_tools/commands/final_blank_line.rb,
lib/polish_geeks/dev_tools/commands/rspec_files_names.rb,
lib/polish_geeks/dev_tools/commands/tasks_files_names.rb,
lib/polish_geeks/dev_tools/commands/allowed_extensions.rb,
lib/polish_geeks/dev_tools/commands/examples_comparator.rb,
lib/polish_geeks/dev_tools/commands/rspec_files_structure.rb,
lib/polish_geeks/dev_tools/commands/empty_methods/file_parser.rb,
lib/polish_geeks/dev_tools/commands/empty_methods/string_refinements.rb

Overview

Dev Tools for PolishGeeks developers

Defined Under Namespace

Modules: Commands, Errors, Validators Classes: Config, ConfigManager, Hash, Logger, OutputStorer, Runner, Shell

Constant Summary collapse

VERSION =

Current version of dev tools

'1.4.0'.freeze

Class Method Summary collapse

Class Method Details

.app_rootString

Returns app root path.

Returns:

  • (String)

    app root path



16
17
18
# File 'lib/polish_geeks/dev_tools.rb', line 16

def self.app_root
  File.dirname(ENV['BUNDLE_GEMFILE'])
end

.configPolishGeeks::DevTools::Config.config

This is just an alias so we can use it from DevTools directly



6
7
8
# File 'lib/polish_geeks/dev_tools.rb', line 6

def self.config
  Config.config
end

.gem_rootString

Returns root path of this gem.

Returns:

  • (String)

    root path of this gem



11
12
13
# File 'lib/polish_geeks/dev_tools.rb', line 11

def self.gem_root
  File.expand_path('../../..', __FILE__)
end

.setup(&block) ⇒ Object

Sets up the whole configuration

Parameters:

  • block (Block)


22
23
24
# File 'lib/polish_geeks/dev_tools.rb', line 22

def self.setup(&block)
  Config.setup(&block)
end