Sha256: 7c1538be1ea81f6b79b0d71a091b8e34e1d5f63a87e0073bfd2c44719dbdef72
Contents?: true
Size: 1.64 KB
Versions: 5
Compression:
Stored size: 1.64 KB
Contents
# Copyright, 2016, by Samuel G. D. Williams. <http://www.codeotaku.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. require 'fileutils' require 'build/graph' require 'console/event/spawn' module Build # This task class serves as the base class for the environment specific task classes genearted when adding targets. class Task < Graph::Task def initialize(walker, node, group, logger: nil) super(walker, node) @group = group @logger = logger end def task_class self.class end attr :group attr :logger def update @node.apply!(self) end def name self.to_s end def node_string @node.name end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
build-2.6.2 | lib/build/task.rb |
build-2.6.1 | lib/build/task.rb |
build-2.6.0 | lib/build/task.rb |
build-2.5.2 | lib/build/task.rb |
build-2.5.1 | lib/build/task.rb |