Class: Gzr::Commands::Group

Inherits:
SubCommandBase show all
Defined in:
lib/gzr/commands/group.rb,
lib/gzr/commands/group/ls.rb,
lib/gzr/commands/group/member_users.rb,
lib/gzr/commands/group/member_groups.rb

Defined Under Namespace

Classes: Ls, MemberGroups, MemberUsers

Instance Method Summary collapse

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#lsObject



77
78
79
80
81
82
83
84
# File 'lib/gzr/commands/group.rb', line 77

def ls(*)
  if options[:help]
    invoke :help, ['ls']
  else
    require_relative 'group/ls'
    Gzr::Commands::Group::Ls.new(options).execute
  end
end

#member_groups(group_id) ⇒ Object



59
60
61
62
63
64
65
66
# File 'lib/gzr/commands/group.rb', line 59

def member_groups(group_id)
  if options[:help]
    invoke :help, ['member_groups']
  else
    require_relative 'group/member_groups'
    Gzr::Commands::Group::MemberGroups.new(group_id,options).execute
  end
end

#member_users(group_id) ⇒ Object



41
42
43
44
45
46
47
48
# File 'lib/gzr/commands/group.rb', line 41

def member_users(group_id)
  if options[:help]
    invoke :help, ['member_users']
  else
    require_relative 'group/member_users'
    Gzr::Commands::Group::MemberUsers.new(group_id,options).execute
  end
end