Skip to content
This repository
Browse code

delete obsolete files.

  • Loading branch information...
commit 82e5abca45a4ac2a06c3bd753286dbf2877e0fe8 1 parent e6502a1
Charles Lowell authored

Showing 2 changed files with 0 additions and 59 deletions. Show diff stats Hide diff stats

  1. +0 52 lib/jenkins/model.rb
  2. +0 7 lib/jenkins/tasks/build_wrapper.rb
52 lib/jenkins/model.rb
... ... @@ -1,52 +0,0 @@
1   -
2   -module Jenkins
3   - module Model
4   - def self.included(cls)
5   - super(cls)
6   - cls.extend(ClassMethods)
7   - cls.send(:include, InstanceMethods)
8   - end
9   -
10   - module InstanceMethods
11   - def display_name
12   - self.class.display_name
13   - end
14   - end
15   -
16   - module ClassMethods
17   - def display_name(name = nil)
18   - name.nil? ? @display_name || self.name : @display_name = name.to_s
19   - end
20   -
21   - def attr_reader(*names)
22   - super(*names)
23   - add_properties names
24   - end
25   -
26   - def attr_accessor(*names)
27   - super(*names)
28   - add_properties names
29   - end
30   -
31   - def properties(all = true)
32   - @properties ||= []
33   - if all
34   - total = @properties.dup
35   - s = self
36   - while s = s.superclass
37   - total = s.properties + total if s < Jenkins::Model
38   - end
39   - total
40   - else
41   - @properties
42   - end
43   - end
44   -
45   - def add_properties(names)
46   - names.each do |name|
47   - properties(false) << name unless properties(false).member?(name)
48   - end
49   - end
50   - end
51   - end
52   -end
7 lib/jenkins/tasks/build_wrapper.rb
... ... @@ -1,7 +0,0 @@
1   -
2   -module Jenkins
3   - module Tasks
4   - class BuildWrapper
5   - end
6   - end
7   -end

0 comments on commit 82e5abc

Please sign in to comment.
Something went wrong with that request. Please try again.