Method: Spring::Client::Binstub#initialize

Defined in:
lib/spring/client/binstub.rb

#initialize(args) ⇒ Binstub

Returns a new instance of Binstub.



132
133
134
135
136
137
138
139
140
141
142
# File 'lib/spring/client/binstub.rb', line 132

def initialize(args)
  super

  @bindir = env.root.join("bin")
  @all    = false
  @mode   = :add
  @items  = args.drop(1)
                .map { |name| find_commands name }
                .inject(Set.new, :|)
                .map { |command| Item.new(command) }
end