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/enable.rb,
lib/gzr/commands/user/disable.rb
Defined Under Namespace
Classes: Cat, Disable, Enable, Ls, Me
Instance Method Summary
collapse
banner, subcommand_prefix
Instance Method Details
#cat(user_id) ⇒ Object
63
64
65
66
67
68
69
70
|
# File 'lib/gzr/commands/user.rb', line 63
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
|
#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
101
102
103
104
105
106
107
108
|
# File 'lib/gzr/commands/user.rb', line 101
def ls(*)
if options[:help]
invoke :help, ['ls']
else
require_relative 'user/ls'
Gzr::Commands::User::Ls.new(options).execute
end
end
|
#me ⇒ Object
81
82
83
84
85
86
87
88
|
# File 'lib/gzr/commands/user.rb', line 81
def me(*)
if options[:help]
invoke :help, ['me']
else
require_relative 'user/me'
Gzr::Commands::User::Me.new(options).execute
end
end
|