Class: Packwerk::SpringCommand

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/packwerk/spring_command.rb

Instance Method Summary collapse

Instance Method Details

#callObject



29
30
31
# File 'lib/packwerk/spring_command.rb', line 29

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

#env(args) ⇒ Object



12
13
14
15
16
# File 'lib/packwerk/spring_command.rb', line 12

def env(args)
  # 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



19
20
21
# File 'lib/packwerk/spring_command.rb', line 19

def exec_name
  "packwerk"
end

#gem_nameObject



24
25
26
# File 'lib/packwerk/spring_command.rb', line 24

def gem_name
  "packwerk"
end