Class: UsePackwerk::SpringCommand
- Inherits:
-
Object
- Object
- UsePackwerk::SpringCommand
- Defined in:
- lib/use_packwerk/spring_command.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
22 23 24 |
# File 'lib/use_packwerk/spring_command.rb', line 22 def call load(Gem.bin_path(gem_name, exec_name)) end |
#env ⇒ Object
8 9 10 11 12 |
# File 'lib/use_packwerk/spring_command.rb', line 8 def env(*) # Packwerk needs to run in a test environment, which has a set of autoload paths that are # often a superset of the dev/prod paths (for example, test/support/helpers) 'test' end |
#exec_name ⇒ Object
14 15 16 |
# File 'lib/use_packwerk/spring_command.rb', line 14 def exec_name 'packs' end |
#gem_name ⇒ Object
18 19 20 |
# File 'lib/use_packwerk/spring_command.rb', line 18 def gem_name 'use_packwerk' end |