Class: XZGit::XZDevGit
- Inherits:
-
Command
- Object
- CLAide::Command
- Command
- XZGit::XZDevGit
show all
- Defined in:
- lib/mrbin/xzcommand/xzdevgit.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
read_private_token, read_remote_project, run, verify_git_repo
Constructor Details
#initialize(argv) ⇒ XZDevGit
Returns a new instance of XZDevGit.
13
14
15
16
17
|
# File 'lib/mrbin/xzcommand/xzdevgit.rb', line 13
def initialize(argv)
@exclude = argv.option('exclude','').split(',')
@gitcommands = argv.arguments
super
end
|
Class Method Details
.options ⇒ Object
7
8
9
10
11
|
# File 'lib/mrbin/xzcommand/xzdevgit.rb', line 7
def self.options
[
['--exclude','exclude pod name']
].concat(super)
end
|
Instance Method Details
#run ⇒ Object
30
31
32
33
|
# File 'lib/mrbin/xzcommand/xzdevgit.rb', line 30
def run
pods = excutepods()
excutecommand(pods)
end
|
#validate! ⇒ Object
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/mrbin/xzcommand/xzdevgit.rb', line 19
def validate!
root_path = Dir.pwd()
dev_path = "#{root_path}/DevPods"
if File.directory?(dev_path) && !Dir.empty?(dev_path)
puts "devpods path --> #{dev_path}"
else
puts "DevPods does not exist or DevPods is empty"
exit(1)
end
end
|