Exception: Braid::Operations::VersionTooLow

Inherits:
BraidError
  • Object
show all
Defined in:
lib/braid/operations.rb

Instance Method Summary collapse

Constructor Details

#initialize(command, version, required) ⇒ VersionTooLow

Returns a new instance of VersionTooLow.



18
19
20
21
22
# File 'lib/braid/operations.rb', line 18

def initialize(command, version, required)
  @command  = command
  @version  = version.to_s.split("\n").first
  @required = required
end

Instance Method Details

#messageObject



24
25
26
# File 'lib/braid/operations.rb', line 24

def message
  "#{@command} version too low: #{@version}. #{@required} needed."
end