Class: HelpM

Inherits:
Object
  • Object
show all
Defined in:
lib/actions/help.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#common_optObject (readonly)

Returns the value of attribute common_opt.



7
8
9
# File 'lib/actions/help.rb', line 7

def common_opt
  @common_opt
end

#org_repoObject (readonly)

Returns the value of attribute org_repo.



4
5
6
# File 'lib/actions/help.rb', line 4

def org_repo
  @org_repo
end

#org_teamsObject (readonly)

Returns the value of attribute org_teams.



5
6
7
# File 'lib/actions/help.rb', line 5

def org_teams
  @org_teams
end

#userObject (readonly)

Returns the value of attribute user.



3
4
5
# File 'lib/actions/help.rb', line 3

def user
  @user
end

#user_repoObject (readonly)

Returns the value of attribute user_repo.



6
7
8
# File 'lib/actions/help.rb', line 6

def user_repo
  @user_repo
end

Instance Method Details

#orgObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/actions/help.rb', line 21

def org()
  self.common_opt
  puts " Organization options:"
  print "\n\tCOMMAND\t\t\tDESCRIPTION\n\n"
  print "\trepos\t\t\tList the repositories of your organization\n"
  print "\tclone\t\t\tClone a repository or a list of repositories using a regular expresion\n"
  print "\tset\t\t\tMove you to a specific repository\n"
  print "\tpeople\t\t\tMembers of a organization\n"
  print "\tteams\t\t\tTeams of a organization\n"
  print "\tassignments\t\tShow the list of assignments created\n"
  print "\tnew_assignment\t\tCreate an Assignment in your organization\n"
  print "\tgroups\t\t\tShow the list of groups with each team and user that it has\n"
  print "\tnew_group\t\tCreate a new group. Expected the name and teams given one by one\n"
  print "\t\t\t\t->\tnew_group [name of the group] [team1] [team2] [team3] ... \n\n"
  print "\trm_group\t\tDelete a created group\n"
  print "\t\t\t\t->\trm_group [name of the group]\n\n"
  print "\trm_team\t\t\tDelete a team in you organization. Expected the name of the team\n"
  print "\t\t\t\t->\trm_team [name of the team]\n\n"
  print "\tnew_team\t\tCreate a team in the organization. Expected the name of the team, and/or members given one by one\n"
  print "\t\t\t\t->\tnew_team [name of the team] [member1] [member2] [member3] ... \n\n"

end

#orgs_teamsObject



61
62
63
64
65
66
67
68
69
# File 'lib/actions/help.rb', line 61

def orgs_teams()
  self.common_opt
  puts " Organization team options:"
  print "\n\tCOMMAND\t\t\tDESCRIPTION\n\n"
  print "\tpeople\t\t\tMembers of the team\n"
  print "\tclone\t\t\tClone a repository or a list of repositories using a regular expresion\n"
  print "\tnew_repository\t\tCreate a repository to this team\n"
  print "\tadd_to_team\t\t\tAdd a member in the team\n\n"
end

#team_repoObject



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/actions/help.rb', line 87

def team_repo()
  self.common_opt
  puts " Repository options:"
  print "\n\tCOMMAND\t\t\tDESCRIPTION\n\n"
  print "\tinfo\t\t\tShow information about the repository\n"
  print "\tcommits\t\t\tShow the list of commits from the repository\n"
  print "\tissues\t\t\tShow the list of issues from the repository\n"
  print "\tissue\t\t\tShow the issue and its comments\n"
  print "\t\t\t\t->\tissue [Id of the issue]\n\n"
  print "\tfiles\t\t\tShow the files of the repository path given\n"
  print "\tcat\t\t\tShow data from a file\n"
  print "\t\t\t\t->\tcat [file]\n\n"
  print "\tprivate\t\t\tChange the privacy of a repository. Expected 'true' or 'false' as parameter.\n"
  print "\t\t\t\t->\tprivate [true]\n\n"
  print "\tcol\t\t\tShow the list of collaborators from the repository\n\n"
end

#welcomeObject



125
126
127
128
# File 'lib/actions/help.rb', line 125

def welcome
  puts "\nGitHub Education Shell!"
  puts "_______________________\n\n"
end