module DevopsHelper::GvcsHelper

Public Instance Methods

has_new_changes?() click to toggle source
# File lib/devops_helper/vcs_helper.rb, line 17
def has_new_changes?
  ws = Gvcs::Workspace.new(vcs,@root)
  
  nst, nf = ws.new_files

  nf.length > 0 
end
has_pending_changes?() click to toggle source
# File lib/devops_helper/vcs_helper.rb, line 8
def has_pending_changes?
  ws = Gvcs::Workspace.new(vcs,@root)
  
  mst, mf = ws.modified_files
  dst, df = ws.deleted_files

  mf.length > 0 or df.length > 0
end
is_workspace?() click to toggle source
# File lib/devops_helper/vcs_helper.rb, line 25
def is_workspace?
  Gvcs::Workspace.new(vcs,@root).is_workspace?
end
method_missing(mtd, *args, &block) click to toggle source
Calls superclass method
# File lib/devops_helper/vcs_helper.rb, line 29
def method_missing(mtd, *args, &block)
  ws = Gvcs::Workspace.new(vcs,@root)
  if ws.respond_to?(mtd)
    ws.send(mtd,*args,&block)
  else
    super
  end 
end

Private Instance Methods

vcs() click to toggle source
# File lib/devops_helper/vcs_helper.rb, line 39
def vcs
  if is_empty?(@vcs)
    @vcs = Gvcs::Vcs.new
  end
  @vcs
end