Class: Tlog::Command::Init
Instance Attribute Summary
#date_time_format, #seconds_format, #storage
Instance Method Summary
collapse
Instance Method Details
#description ⇒ Object
8
9
10
|
# File 'lib/tlog/command/init.rb', line 8
def description
"fuck"
end
|
#execute(input, output) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/tlog/command/init.rb', line 12
def execute(input,output)
if input.args[0].nil?
raise Tlog::Error::CommandInvalid, "Project already initialized" unless @storage.init_project
else
raise Tlog::Error::CommandInvalid, "Command invalid"
end
end
|
#name ⇒ Object
4
5
6
|
# File 'lib/tlog/command/init.rb', line 4
def name
"init"
end
|
#options(parser, options) ⇒ Object
32
33
34
|
# File 'lib/tlog/command/init.rb', line 32
def options(parser, options)
parser.banner = "usage: tlog init"
end
|