Class: UsePackwerk::SpringCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/use_packwerk/spring_command.rb

Instance Method Summary collapse

Instance Method Details

#callObject



22
23
24
# File 'lib/use_packwerk/spring_command.rb', line 22

def call
  load(Gem.bin_path(gem_name, exec_name))
end

#envObject



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_nameObject



14
15
16
# File 'lib/use_packwerk/spring_command.rb', line 14

def exec_name
  'packs'
end

#gem_nameObject



18
19
20
# File 'lib/use_packwerk/spring_command.rb', line 18

def gem_name
  'use_packwerk'
end