Module: Banis::ModDev::DevReposWorkspace

Defined in:
lib/banis/mod_dev/dev_repos_workspace.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(mtd, *args, &block) ⇒ Object (private)



29
30
31
32
33
# File 'lib/banis/mod_dev/dev_repos_workspace.rb', line 29

def method_missing(mtd, *args, &block)
  if ws.respond_to?(mtd)
    ws.send(mtd, *args, &block)
  end
end

Instance Method Details

#gityObject



13
14
15
16
17
18
# File 'lib/banis/mod_dev/dev_repos_workspace.rb', line 13

def gity
  Gity::Landing.new.run(model.vcs_path, no_exit: true) do |ops, *val|
    # can listen to various operations feedback here to perform system specific
    # functions such as to map the commit with develement issue... Can prompt too
  end
end

#has_changes?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/banis/mod_dev/dev_repos_workspace.rb', line 9

def has_changes?
  not ws.is_clean? 
end