Class: Wordmove::Doctor::Rsync
- Inherits:
-
Object
- Object
- Wordmove::Doctor::Rsync
- Defined in:
- lib/wordmove/doctor/rsync.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #check! ⇒ Object
-
#initialize ⇒ Rsync
constructor
A new instance of Rsync.
Constructor Details
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
4 5 6 |
# File 'lib/wordmove/doctor/rsync.rb', line 4 def logger @logger end |
Instance Method Details
#check! ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/wordmove/doctor/rsync.rb', line 10 def check! logger.task "Checking rsync" if (version = /\d\.\d.\d/.match(`rsync --version | head -n1`)[0]) logger.success "rsync is installed at version #{version}" else logger.error "rsync not found. And belive me: it's really strange it's not there." end end |