class DYAutomate::Command::Git

Attributes

git_obj[RW]

查询结果lib信息

path[RW]

路径

Public Class Methods

new(argv) click to toggle source
Calls superclass method DYAutomate::Command::new
# File lib/DYAutomate/Command/dgit.rb, line 22
def initialize(argv)
  super
end

Public Instance Methods

existGit?() click to toggle source
# File lib/DYAutomate/Command/dgit.rb, line 41
def existGit?
    @git_obj = Git.new(Dir.pwd)
    @git_obj
end
run() click to toggle source
# File lib/DYAutomate/Command/dgit.rb, line 37
def run
  pp('git run ...',1)
end
validate!() click to toggle source
Calls superclass method
# File lib/DYAutomate/Command/dgit.rb, line 26
def validate!
  super
  # unless @name
  #   help! 'need the lib `NAME`.'
  # end

  unless existGit?
    help! "at #{Dir.pwd},is not git"
  end
end