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



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/actions/help.rb', line 19

def org()
  self.common_opt
  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 "\tnew_assignment\t\tcreate a repository in your organization\n"
  print "\trm_team\t\t\tdelete a team in you organization. Expected the name of the team\n"
  print "\tnew_team\t\t\tcreate a team in the organization. Expected the name of the team, and/or members given one by one\n\n"
end

#orgs_teamsObject



40
41
42
43
44
45
46
# File 'lib/actions/help.rb', line 40

def orgs_teams()
  self.common_opt
  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



56
57
58
59
60
61
62
63
# File 'lib/actions/help.rb', line 56

def team_repo()
  self.common_opt
  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 "\tfiles\t\t\tshow the files of the repository path given\n"
  print "\tcat\t\t\tshow data from a file\n"
  print "\tcol\t\t\tshow the list of collaborators from the repository\n\n"
end

#welcomeObject



74
75
76
77
# File 'lib/actions/help.rb', line 74

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