Class: Pechkin::Command::Check

Inherits:
Base
  • Object
show all
Defined in:
lib/pechkin/command/check.rb

Overview

Check configuration consistency and exit.

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#configuration, #handler, #initialize, #puts, #warn

Constructor Details

This class inherits a constructor from Pechkin::Command::Base

Instance Method Details

#executeObject



9
10
11
# File 'lib/pechkin/command/check.rb', line 9

def execute
  configuration # load configuration from disk and do nothing more
end

#matches?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/pechkin/command/check.rb', line 5

def matches?
  options.check?
end