public
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
Search Repo:
commit  ae858b7b7efd66d57d7d8e5dff01e2483013269e
tree    b332d136f2a42e281e024ff8f31ee122012a17cc
parent  2aeee27076fce0c7d1130d3825afd7e4ab0c02cc
piston / lib / piston / commands / info.rb
100644 15 lines (13 sloc) 0.374 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "piston/commands/base"
 
module Piston
  module Commands
    class Info < Piston::Commands::Base
      attr_reader :options
 
      def run(wcdir)
        working_copy = Piston::WorkingCopy.guess(wcdir)
        raise Piston::WorkingCopy::NotWorkingCopy if !working_copy.exist? || !working_copy.pistonized?
        working_copy.info.to_yaml
      end
    end
  end
end