Class: Gzr::Commands::User
- Inherits:
-
SubCommandBase
show all
- Defined in:
- lib/gzr/commands/user.rb,
lib/gzr/commands/user/ls.rb,
lib/gzr/commands/user/me.rb,
lib/gzr/commands/user/cat.rb,
lib/gzr/commands/user/delete.rb,
lib/gzr/commands/user/enable.rb,
lib/gzr/commands/user/disable.rb
Defined Under Namespace
Classes: Cat, Delete, Disable, Enable, Ls, Me
Instance Method Summary
collapse
banner, subcommand_prefix
Instance Method Details
#cat(user_id) ⇒ Object
77
78
79
80
81
82
83
84
|
# File 'lib/gzr/commands/user.rb', line 77
def cat(user_id)
if options[:help]
invoke :help, ['cat']
else
require_relative 'user/cat'
Gzr::Commands::User::Cat.new(user_id,options).execute
end
end
|
#delete(user_id) ⇒ Object
59
60
61
62
63
64
65
66
|
# File 'lib/gzr/commands/user.rb', line 59
def delete(user_id)
if options[:help]
invoke :help, ['delete']
else
require_relative 'user/delete'
Gzr::Commands::User::Delete.new(user_id,options).execute
end
end
|
#disable(user_id) ⇒ Object
47
48
49
50
51
52
53
54
|
# File 'lib/gzr/commands/user.rb', line 47
def disable(user_id)
if options[:help]
invoke :help, ['disable']
else
require_relative 'user/disable'
Gzr::Commands::User::Disable.new(user_id,options).execute
end
end
|
#enable(user_id) ⇒ Object
35
36
37
38
39
40
41
42
|
# File 'lib/gzr/commands/user.rb', line 35
def enable(user_id)
if options[:help]
invoke :help, ['enable']
else
require_relative 'user/enable'
Gzr::Commands::User::Enable.new(user_id,options).execute
end
end
|
#ls ⇒ Object
115
116
117
118
119
120
121
122
|
# File 'lib/gzr/commands/user.rb', line 115
def ls(*)
if options[:help]
invoke :help, ['ls']
else
require_relative 'user/ls'
Gzr::Commands::User::Ls.new(options).execute
end
end
|
#me ⇒ Object
95
96
97
98
99
100
101
102
|
# File 'lib/gzr/commands/user.rb', line 95
def me(*)
if options[:help]
invoke :help, ['me']
else
require_relative 'user/me'
Gzr::Commands::User::Me.new(options).execute
end
end
|