Module: Checky

Defined in:
lib/checky.rb,
lib/checky/checker.rb,
lib/checky/version.rb,
lib/checky/exceptions.rb,
lib/checky/validators/all.rb,
lib/checky/validators/binary.rb,
lib/checky/validators/verbose.rb,
lib/checky/validators/version.rb,
lib/checky/validators/fail_hard.rb

Defined Under Namespace

Modules: Validators Classes: Checker, Exception, ValidationError

Constant Summary collapse

VERSION =
'0.1.2'

Class Method Summary collapse

Class Method Details

.check(&block) ⇒ Object



23
24
25
# File 'lib/checky.rb', line 23

def check(&block)
  Checker.new.check(&block)
end

.colorizeObject

Returns the value of attribute colorize.



21
22
23
# File 'lib/checky.rb', line 21

def colorize
  @colorize
end

.colorize=(value) ⇒ Object

Sets the attribute colorize

Parameters:

  • value

    the value to set the attribute colorize to.



21
22
23
# File 'lib/checky.rb', line 21

def colorize=(value)
  @colorize = value
end

.run(command) ⇒ Object

:nocov:



28
29
30
# File 'lib/checky.rb', line 28

def run(command)
  `#{command}`
end