Module: Autowow::Commands::Gem
- Includes:
- ReflectionUtils::CreateModuleFunctions
- Included in:
- Features::Gem
- Defined in:
- lib/autowow/commands/gem.rb
Instance Method Summary collapse
- #be ⇒ Object
- #clean ⇒ Object
- #release ⇒ Object
- #rubocop_autocorrect(files) ⇒ Object
- #rubocop_parallel ⇒ Object
Instance Method Details
#be ⇒ Object
25 26 27 |
# File 'lib/autowow/commands/gem.rb', line 25 def be ["bundle", "exec"] end |
#clean ⇒ Object
8 9 10 |
# File 'lib/autowow/commands/gem.rb', line 8 def clean ["gem", "clean"] end |
#release ⇒ Object
4 5 6 |
# File 'lib/autowow/commands/gem.rb', line 4 def release be + ["rake", "release"] end |
#rubocop_autocorrect(files) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/autowow/commands/gem.rb', line 16 def rubocop_autocorrect(files) cmd = be + ["rubocop", "--auto-correct"] if files.kind_of?(Array) cmd + files else cmd + files.split(" ") end end |
#rubocop_parallel ⇒ Object
12 13 14 |
# File 'lib/autowow/commands/gem.rb', line 12 def rubocop_parallel be + ["rubocop", "--parallel"] end |