Class: Look
Overview
Command ‘lookfile’ implementation
Class Method Summary
collapse
Methods inherited from Command
childrens?, run, run_childrens, usage, usage_header
Class Method Details
.command_name ⇒ Object
24
25
26
|
# File 'lib/commands/look.rb', line 24
def self.command_name
'lookfile'
end
|
.options_messages ⇒ Object
12
13
14
|
# File 'lib/commands/look.rb', line 12
def self.options_messages
'asdsad'
end
|
.parent ⇒ Object
28
29
30
|
# File 'lib/commands/look.rb', line 28
def self.parent
nil
end
|
.usage_bottom ⇒ Object
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
|