GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
francois (author)
Tue May 13 15:39:40 -0700 2008
commit  10863f19e2e48c704983bb1618aacd0f29ebae9c
tree    f8cc72c2dd0611c3fab2518d7e1bee30affd5615
parent  a7c46c702243f145a4089b0cb33d189870f1ae52
piston / lib / piston / commands / base.rb
100644 35 lines (28 sloc) 0.56 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module Piston
  module Commands
    class Base
      class << self
        def logger
          @@logger ||= Log4r::Logger["main"]
        end
      end
 
      attr_reader :options
 
      def initialize(options={})
        @options = options
        logger.debug {"#{self.class.name} with options #{options.inspect}"}
      end
 
      def verbose
        @options[:verbose]
      end
 
      def force
        @options[:force]
      end
 
      def quiet
        @options[:quiet]
      end
 
      def logger
        self.class.logger
      end
    end
  end
end