OLD | NEW |
1 #!/usr/bin/python2.4 | 1 #!/usr/bin/env python |
2 # Copyright 2009, Google Inc. | 2 # Copyright 2009, Google Inc. |
3 # All rights reserved. | 3 # All rights reserved. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
11 # * Redistributions in binary form must reproduce the above | 11 # * Redistributions in binary form must reproduce the above |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 dest_nodes += self.Replicate(target_path + '/' + source[1], source[0]) | 110 dest_nodes += self.Replicate(target_path + '/' + source[1], source[0]) |
111 else: | 111 else: |
112 dest_nodes += self.Replicate(target_path, source[0]) | 112 dest_nodes += self.Replicate(target_path, source[0]) |
113 #GOOGLE_CHANGE(pss) - END CHANGES | 113 #GOOGLE_CHANGE(pss) - END CHANGES |
114 return dest_nodes | 114 return dest_nodes |
115 | 115 |
116 | 116 |
117 #GOOGLE_CHANGE(pss) - FROM THIS: | 117 #GOOGLE_CHANGE(pss) - FROM THIS: |
118 # def GetPublished(self, group_name, resource_type): | 118 # def GetPublished(self, group_name, resource_type): |
119 # """Returns a list of the published resources of the specified type. | 119 # """Returns a list of the published resources of the specified type. |
120 # | 120 # |
121 # Args: | 121 # Args: |
122 # self: Environment in which this function was called. | 122 # self: Environment in which this function was called. |
123 # group_name: Name of resource group, or a list of names of resource groups. | 123 # group_name: Name of resource group, or a list of names of resource groups. |
124 # resource_type: Type of resources (string), or a list of resource types. | 124 # resource_type: Type of resources (string), or a list of resource types. |
125 # | 125 # |
126 # Returns: | 126 # Returns: |
127 # A flattened list of the source nodes from calls to Publish() for the | 127 # A flattened list of the source nodes from calls to Publish() for the |
128 # specified group and resource type. Returns an empty list if there are | 128 # specified group and resource type. Returns an empty list if there are |
129 # no matching resources. | 129 # no matching resources. |
130 # """ | 130 # """ |
131 #GOOGLE_CHANGE(pss) - TO THIS: | 131 #GOOGLE_CHANGE(pss) - TO THIS: |
132 def GetPublishedWithSubdirs(self, group_name, resource_type): | 132 def GetPublishedWithSubdirs(self, group_name, resource_type): |
133 """Returns a list of the published resources of the specified type. | 133 """Returns a list of the published resources of the specified type. |
134 | 134 |
135 Args: | 135 Args: |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 env.Defer(_InitializePublish) | 244 env.Defer(_InitializePublish) |
245 env.Defer('BuildEnvironmentSConscripts', after=_InitializePublish) | 245 env.Defer('BuildEnvironmentSConscripts', after=_InitializePublish) |
246 | 246 |
247 #GOOGLE_CHANGE(pss) - FROM THIS: | 247 #GOOGLE_CHANGE(pss) - FROM THIS: |
248 #GOOGLE_CHANGE(pss) - TO THIS: | 248 #GOOGLE_CHANGE(pss) - TO THIS: |
249 env.AddMethod(GetPublishedWithSubdirs) | 249 env.AddMethod(GetPublishedWithSubdirs) |
250 #GOOGLE_CHANGE(pss) - END CHANGES | 250 #GOOGLE_CHANGE(pss) - END CHANGES |
251 env.AddMethod(GetPublished) | 251 env.AddMethod(GetPublished) |
252 env.AddMethod(Publish) | 252 env.AddMethod(Publish) |
253 env.AddMethod(ReplicatePublished) | 253 env.AddMethod(ReplicatePublished) |
OLD | NEW |