File: init.rb

package info (click to toggle)
ticgit 1.0.2.18-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: ruby: 2,848; sh: 124; makefile: 16
file content (20 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module TicGitNG
  module Command
    module Init
      def parser o
        o.banner= "Usage: ti init"
      end
      def execute
        @tic.read_tickets
=begin
        #Initialization has to happen earlier in the code so this code stands
        #as an example, when `ti init` is called, initialization is handled by
        #base.rb:354 (at the time of writing this).
        tic.base.init_ticgitng_branch(
          git.lib.branches_all.map{|b| b.first }.include?(which_branch?)
        )
=end
      end
    end
  end
end