Class: Spring::Client::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/spring/client/command.rb

Direct Known Subclasses

Binstub, Help, Rails, Run, Status, Stop, Version

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Command

Returns a new instance of Command.



12
13
14
15
# File 'lib/spring/client/command.rb', line 12

def initialize(args)
  @args = args
  @env  = Env.new
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



10
11
12
# File 'lib/spring/client/command.rb', line 10

def args
  @args
end

#envObject (readonly)

Returns the value of attribute env.



10
11
12
# File 'lib/spring/client/command.rb', line 10

def env
  @env
end

Class Method Details

.call(args) ⇒ Object



6
7
8
# File 'lib/spring/client/command.rb', line 6

def self.call(args)
  new(args).call
end