Class: Look

Inherits:
Command show all
Defined in:
lib/commands/look.rb

Overview

Command ‘lookfile’ implementation

Class Method Summary collapse

Methods inherited from Command

childrens?, run, run_childrens, usage, usage_header

Class Method Details

.childrensObject



32
33
34
# File 'lib/commands/look.rb', line 32

def self.childrens
  [Init, Add, Push, Status, Show, Restore, SetRepository]
end

.command_nameObject



24
25
26
# File 'lib/commands/look.rb', line 24

def self.command_name
  'lookfile'
end

.options_messagesObject



12
13
14
# File 'lib/commands/look.rb', line 12

def self.options_messages
  'asdsad'
end

.parentObject



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

def self.parent
  nil
end

.usage_bottomObject



16
17
18
19
20
21
22
# File 'lib/commands/look.rb', line 16

def self.usage_bottom
  user_name = File.expand_path('~').scan(%r{/home/(.+)+}).flatten.first
  %(  Attention: \t To push files every five minutes copy add the following
\t\t line on /etc/crontab:
\t\t */5 *  * * *  #{user_name} lookfile push
  )
end