Class: Makit::Git
- Inherits:
-
Object
- Object
- Makit::Git
- Defined in:
- lib/makit/git.rb,
lib/makit/git/cli.rb,
lib/makit/git/repository.rb
Overview
This class provides a unified interface for git operations. Methods have been organized into Repository (state/metadata) and CLI (commands) classes.
Defined Under Namespace
Classes: CLI, Repository
Class Method Summary collapse
- .branch ⇒ Object
- .ci? ⇒ Boolean
- .clean? ⇒ Boolean
- .commitauthor ⇒ Object
- .commitdate ⇒ Object
- .commitemail ⇒ Object
- .commitmsg ⇒ Object
- .commitsha ⇒ Object
- .detached ⇒ Object
- .get_file_infos ⇒ Object
- .get_remote_url ⇒ Object
- .get_untracked_file_infos ⇒ Object
-
.git_repo? ⇒ Boolean
Delegate repository state and metadata methods to Repository class.
-
.integrate ⇒ Object
Delegate command execution methods to CLI class.
- .pull ⇒ Object
- .read_only? ⇒ Boolean
- .sync ⇒ Object
- .tag(version) ⇒ Object
- .unstaged_files ⇒ Object
- .untracked_files ⇒ Object
- .zip_source_files(zipfilename) ⇒ Object
Class Method Details
.branch ⇒ Object
49 50 51 |
# File 'lib/makit/git.rb', line 49 def self.branch Repository.branch end |
.commitauthor ⇒ Object
65 66 67 |
# File 'lib/makit/git.rb', line 65 def self. Repository. end |
.commitdate ⇒ Object
61 62 63 |
# File 'lib/makit/git.rb', line 61 def self.commitdate Repository.commitdate end |
.commitemail ⇒ Object
69 70 71 |
# File 'lib/makit/git.rb', line 69 def self.commitemail Repository.commitemail end |
.commitmsg ⇒ Object
57 58 59 |
# File 'lib/makit/git.rb', line 57 def self.commitmsg Repository.commitmsg end |
.commitsha ⇒ Object
53 54 55 |
# File 'lib/makit/git.rb', line 53 def self.commitsha Repository.commitsha end |
.detached ⇒ Object
21 22 23 |
# File 'lib/makit/git.rb', line 21 def self.detached Repository.detached end |
.get_file_infos ⇒ Object
41 42 43 |
# File 'lib/makit/git.rb', line 41 def self.get_file_infos Repository.get_file_infos end |
.get_remote_url ⇒ Object
73 74 75 |
# File 'lib/makit/git.rb', line 73 def self.get_remote_url Repository.get_remote_url end |
.get_untracked_file_infos ⇒ Object
45 46 47 |
# File 'lib/makit/git.rb', line 45 def self.get_untracked_file_infos Repository.get_untracked_file_infos end |
.git_repo? ⇒ Boolean
Delegate repository state and metadata methods to Repository class
13 14 15 |
# File 'lib/makit/git.rb', line 13 def self.git_repo? Repository.git_repo? end |
.integrate ⇒ Object
Delegate command execution methods to CLI class
78 79 80 |
# File 'lib/makit/git.rb', line 78 def self.integrate CLI.integrate end |
.read_only? ⇒ Boolean
25 26 27 |
# File 'lib/makit/git.rb', line 25 def self.read_only? Repository.read_only? end |
.tag(version) ⇒ Object
94 95 96 |
# File 'lib/makit/git.rb', line 94 def self.tag(version) CLI.tag(version) end |
.unstaged_files ⇒ Object
33 34 35 |
# File 'lib/makit/git.rb', line 33 def self.unstaged_files Repository.unstaged_files end |
.untracked_files ⇒ Object
37 38 39 |
# File 'lib/makit/git.rb', line 37 def self.untracked_files Repository.untracked_files end |
.zip_source_files(zipfilename) ⇒ Object
90 91 92 |
# File 'lib/makit/git.rb', line 90 def self.zip_source_files(zipfilename) CLI.zip_source_files(zipfilename) end |