doc/coverage/index.html in mattock-0.1.0 vs doc/coverage/index.html in mattock-0.1.1
- old
+ new
@@ -21,30 +21,30 @@
<body>
<div id="loading">
<img src="./assets/0.5.3/loading.gif" alt="loading"/>
</div>
<div id="wrapper" style="display:none;">
- <div class="timestamp">Generated <abbr class="timeago" title="2012-01-28T02:02:54-08:00">2012-01-28T02:02:54-08:00</abbr></div>
+ <div class="timestamp">Generated <abbr class="timeago" title="2012-02-01T11:53:33-08:00">2012-02-01T11:53:33-08:00</abbr></div>
<ul class="group_tabs"></ul>
<div id="content">
<div class="file_list_container" id="AllFiles">
<h2>
<span class="group_name">All Files</span>
- (<span class="covered_percent"><span class="green">92.79%</span></span>
+ (<span class="covered_percent"><span class="green">92.84%</span></span>
covered at
<span class="covered_strength">
<span class="green">
- 2.62
+ 2.63
</span>
</span> hits/line)
</h2>
<a name="AllFiles"></a>
<div>
<b>12</b> files in total.
- <b>416</b> relevant lines.
- <span class="green"><b>386</b> lines covered</span> and
+ <b>419</b> relevant lines.
+ <span class="green"><b>389</b> lines covered</span> and
<span class="red"><b>30</b> lines missed </span>
</div>
<table class="file_list">
<thead>
<tr>
@@ -79,16 +79,16 @@
<td>3.2</td>
</tr>
<tr>
<td class="strong"><a href="#19e9811ada5819ea8e2c6a644088d4ba8e773a5b" class="src_link" title="lib/mattock/command-line.rb">lib/mattock/command-line.rb</a></td>
- <td class="green strong">93.1 %</td>
- <td>157</td>
- <td>87</td>
- <td>81</td>
+ <td class="green strong">93.33 %</td>
+ <td>162</td>
+ <td>90</td>
+ <td>84</td>
<td>6</td>
- <td>3.0</td>
+ <td>3.2</td>
</tr>
<tr>
<td class="strong"><a href="#937bd4854d7605194eaf61c021175d6a0f31e6e8" class="src_link" title="lib/mattock/command-task.rb">lib/mattock/command-task.rb</a></td>
<td class="yellow strong">84.21 %</td>
@@ -100,11 +100,11 @@
</tr>
<tr>
<td class="strong"><a href="#151b5abc8f09f0fc2932ac98c07e3b516a518e3e" class="src_link" title="lib/mattock/configurable.rb">lib/mattock/configurable.rb</a></td>
<td class="green strong">96.67 %</td>
- <td>153</td>
+ <td>157</td>
<td>90</td>
<td>87</td>
<td>3</td>
<td>8.1</td>
</tr>
@@ -448,14 +448,14 @@
</div>
<div class="source_table" id="19e9811ada5819ea8e2c6a644088d4ba8e773a5b">
<div class="header">
<h3>lib/mattock/command-line.rb</h3>
- <h4><span class="green">93.1 %</span> covered</h4>
+ <h4><span class="green">93.33 %</span> covered</h4>
<div>
- <b>87</b> relevant lines.
- <span class="green"><b>81</b> lines covered</span> and
+ <b>90</b> relevant lines.
+ <span class="green"><b>84</b> lines covered</span> and
<span class="red"><b>6</b> lines missed.</span>
</div>
</div>
<pre>
@@ -474,932 +474,962 @@
</li>
<li class="covered" data-hits="1" data-linenumber="3">
<span class="hits">1</span>
- <code class="ruby"> def initialize(status, streams)</code>
+ <code class="ruby"> def initialize(command, status, streams)</code>
</li>
<li class="covered" data-hits="5" data-linenumber="4">
<span class="hits">5</span>
- <code class="ruby"> @process_status = status</code>
+ <code class="ruby"> @command = command</code>
</li>
<li class="covered" data-hits="5" data-linenumber="5">
<span class="hits">5</span>
+ <code class="ruby"> @process_status = status</code>
+ </li>
+
+ <li class="covered" data-hits="5" data-linenumber="6">
+ <span class="hits">5</span>
+
<code class="ruby"> @streams = streams</code>
</li>
- <li class="never" data-hits="" data-linenumber="6">
+ <li class="never" data-hits="" data-linenumber="7">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="7">
+ <li class="covered" data-hits="1" data-linenumber="8">
<span class="hits">1</span>
<code class="ruby"> attr_reader :process_status, :streams</code>
</li>
- <li class="never" data-hits="" data-linenumber="8">
+ <li class="never" data-hits="" data-linenumber="9">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="9">
+ <li class="covered" data-hits="1" data-linenumber="10">
<span class="hits">1</span>
<code class="ruby"> def stdout</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="10">
+ <li class="covered" data-hits="1" data-linenumber="11">
<span class="hits">1</span>
<code class="ruby"> @streams[1]</code>
</li>
- <li class="never" data-hits="" data-linenumber="11">
+ <li class="never" data-hits="" data-linenumber="12">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="12">
+ <li class="never" data-hits="" data-linenumber="13">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="13">
+ <li class="covered" data-hits="1" data-linenumber="14">
<span class="hits">1</span>
<code class="ruby"> def stderr</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="14">
+ <li class="missed" data-hits="0" data-linenumber="15">
<code class="ruby"> @streams[2]</code>
</li>
- <li class="never" data-hits="" data-linenumber="15">
+ <li class="never" data-hits="" data-linenumber="16">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="16">
+ <li class="never" data-hits="" data-linenumber="17">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="17">
+ <li class="covered" data-hits="1" data-linenumber="18">
<span class="hits">1</span>
<code class="ruby"> def exit_code</code>
</li>
- <li class="covered" data-hits="11" data-linenumber="18">
+ <li class="covered" data-hits="11" data-linenumber="19">
<span class="hits">11</span>
<code class="ruby"> @process_status.exitstatus</code>
</li>
- <li class="never" data-hits="" data-linenumber="19">
+ <li class="never" data-hits="" data-linenumber="20">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="20">
+ <li class="covered" data-hits="1" data-linenumber="21">
<span class="hits">1</span>
<code class="ruby"> alias exit_status exit_code</code>
</li>
- <li class="never" data-hits="" data-linenumber="21">
+ <li class="never" data-hits="" data-linenumber="22">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="22">
+ <li class="covered" data-hits="1" data-linenumber="23">
<span class="hits">1</span>
<code class="ruby"> def succeeded?</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="23">
+ <li class="covered" data-hits="3" data-linenumber="24">
<span class="hits">3</span>
<code class="ruby"> must_succeed!</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="24">
+ <li class="covered" data-hits="1" data-linenumber="25">
<span class="hits">1</span>
<code class="ruby"> return true</code>
</li>
- <li class="never" data-hits="" data-linenumber="25">
+ <li class="never" data-hits="" data-linenumber="26">
<code class="ruby"> rescue</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="26">
+ <li class="covered" data-hits="2" data-linenumber="27">
<span class="hits">2</span>
<code class="ruby"> return false</code>
</li>
- <li class="never" data-hits="" data-linenumber="27">
+ <li class="never" data-hits="" data-linenumber="28">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="28">
+ <li class="never" data-hits="" data-linenumber="29">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="29">
+ <li class="covered" data-hits="1" data-linenumber="30">
<span class="hits">1</span>
<code class="ruby"> def must_succeed!</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="30">
+ <li class="covered" data-hits="5" data-linenumber="31">
<span class="hits">5</span>
<code class="ruby"> case exit_code</code>
</li>
- <li class="never" data-hits="" data-linenumber="31">
+ <li class="never" data-hits="" data-linenumber="32">
<code class="ruby"> when 0</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="32">
+ <li class="covered" data-hits="3" data-linenumber="33">
<span class="hits">3</span>
<code class="ruby"> return exit_code</code>
</li>
- <li class="never" data-hits="" data-linenumber="33">
+ <li class="never" data-hits="" data-linenumber="34">
<code class="ruby"> else</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="34">
+ <li class="covered" data-hits="2" data-linenumber="35">
<span class="hits">2</span>
- <code class="ruby"> fail "Command '#{name}' failed with exit status #{$?.exitstatus}: \n"</code>
+ <code class="ruby"> fail "Command #{@command.inspect} failed with exit status #{$?.exitstatus}: \n#{streams.inspect}"</code>
</li>
- <li class="never" data-hits="" data-linenumber="35">
+ <li class="never" data-hits="" data-linenumber="36">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="36">
+ <li class="never" data-hits="" data-linenumber="37">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="37">
+ <li class="never" data-hits="" data-linenumber="38">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="38">
+ <li class="never" data-hits="" data-linenumber="39">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="39">
+ <li class="covered" data-hits="1" data-linenumber="40">
<span class="hits">1</span>
<code class="ruby"> class CommandLine</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="40">
+ <li class="covered" data-hits="1" data-linenumber="41">
<span class="hits">1</span>
<code class="ruby"> def initialize(executable, *options)</code>
</li>
- <li class="covered" data-hits="14" data-linenumber="41">
+ <li class="covered" data-hits="14" data-linenumber="42">
<span class="hits">14</span>
<code class="ruby"> @executable = executable</code>
</li>
- <li class="covered" data-hits="14" data-linenumber="42">
+ <li class="covered" data-hits="14" data-linenumber="43">
<span class="hits">14</span>
<code class="ruby"> @options = options</code>
</li>
- <li class="covered" data-hits="14" data-linenumber="43">
+ <li class="covered" data-hits="14" data-linenumber="44">
<span class="hits">14</span>
<code class="ruby"> @redirections = []</code>
</li>
- <li class="covered" data-hits="14" data-linenumber="44">
+ <li class="covered" data-hits="14" data-linenumber="45">
<span class="hits">14</span>
<code class="ruby"> yield self if block_given?</code>
</li>
- <li class="never" data-hits="" data-linenumber="45">
+ <li class="never" data-hits="" data-linenumber="46">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="46">
+ <li class="never" data-hits="" data-linenumber="47">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="47">
+ <li class="covered" data-hits="1" data-linenumber="48">
<span class="hits">1</span>
<code class="ruby"> attr_accessor :name, :executable, :options</code>
</li>
- <li class="never" data-hits="" data-linenumber="48">
+ <li class="never" data-hits="" data-linenumber="49">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="49">
+ <li class="covered" data-hits="1" data-linenumber="50">
<span class="hits">1</span>
+ <code class="ruby"> def verbose</code>
+ </li>
+
+ <li class="covered" data-hits="21" data-linenumber="51">
+ <span class="hits">21</span>
+
+ <code class="ruby"> Rake.verbose && Rake.verbose != Rake::FileUtilsExt::DEFAULT</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="52">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="53">
+
+
+ <code class="ruby"></code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="54">
+ <span class="hits">1</span>
+
<code class="ruby"> def name</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="50">
+ <li class="covered" data-hits="1" data-linenumber="55">
<span class="hits">1</span>
<code class="ruby"> @name || executable</code>
</li>
- <li class="never" data-hits="" data-linenumber="51">
+ <li class="never" data-hits="" data-linenumber="56">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="52">
+ <li class="never" data-hits="" data-linenumber="57">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="53">
+ <li class="covered" data-hits="1" data-linenumber="58">
<span class="hits">1</span>
<code class="ruby"> def command</code>
</li>
- <li class="covered" data-hits="12" data-linenumber="54">
+ <li class="covered" data-hits="12" data-linenumber="59">
<span class="hits">12</span>
<code class="ruby"> ([executable] + options + @redirections).join(" ")</code>
</li>
- <li class="never" data-hits="" data-linenumber="55">
+ <li class="never" data-hits="" data-linenumber="60">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="56">
+ <li class="never" data-hits="" data-linenumber="61">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="57">
+ <li class="covered" data-hits="1" data-linenumber="62">
<span class="hits">1</span>
<code class="ruby"> def redirect_to(stream, path)</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="58">
+ <li class="covered" data-hits="2" data-linenumber="63">
<span class="hits">2</span>
<code class="ruby"> @redirections << "#{stream}>#{path}"</code>
</li>
- <li class="never" data-hits="" data-linenumber="59">
+ <li class="never" data-hits="" data-linenumber="64">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="60">
+ <li class="never" data-hits="" data-linenumber="65">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="61">
+ <li class="covered" data-hits="1" data-linenumber="66">
<span class="hits">1</span>
<code class="ruby"> def redirect_from(path, stream)</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="62">
+ <li class="missed" data-hits="0" data-linenumber="67">
<code class="ruby"> @redirections << "#{stream}<#{path}"</code>
</li>
- <li class="never" data-hits="" data-linenumber="63">
+ <li class="never" data-hits="" data-linenumber="68">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="64">
+ <li class="never" data-hits="" data-linenumber="69">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="65">
+ <li class="covered" data-hits="1" data-linenumber="70">
<span class="hits">1</span>
<code class="ruby"> def copy_stream_to(from, to)</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="66">
+ <li class="missed" data-hits="0" data-linenumber="71">
<code class="ruby"> @redirections << "#{from}>&#{to}"</code>
</li>
- <li class="never" data-hits="" data-linenumber="67">
+ <li class="never" data-hits="" data-linenumber="72">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="68">
+ <li class="never" data-hits="" data-linenumber="73">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="69">
+ <li class="covered" data-hits="1" data-linenumber="74">
<span class="hits">1</span>
<code class="ruby"> def redirect_stdout(path)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="70">
+ <li class="covered" data-hits="1" data-linenumber="75">
<span class="hits">1</span>
<code class="ruby"> redirect_to(1, path)</code>
</li>
- <li class="never" data-hits="" data-linenumber="71">
+ <li class="never" data-hits="" data-linenumber="76">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="72">
+ <li class="never" data-hits="" data-linenumber="77">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="73">
+ <li class="covered" data-hits="1" data-linenumber="78">
<span class="hits">1</span>
<code class="ruby"> def redirect_stderr(path)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="74">
+ <li class="covered" data-hits="1" data-linenumber="79">
<span class="hits">1</span>
<code class="ruby"> redirect_to(2, path)</code>
</li>
- <li class="never" data-hits="" data-linenumber="75">
+ <li class="never" data-hits="" data-linenumber="80">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="76">
+ <li class="never" data-hits="" data-linenumber="81">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="77">
+ <li class="covered" data-hits="1" data-linenumber="82">
<span class="hits">1</span>
<code class="ruby"> def redirect_stdin(path)</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="78">
+ <li class="missed" data-hits="0" data-linenumber="83">
<code class="ruby"> redirect_from(path, 0)</code>
</li>
- <li class="never" data-hits="" data-linenumber="79">
+ <li class="never" data-hits="" data-linenumber="84">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="80">
+ <li class="never" data-hits="" data-linenumber="85">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="81">
+ <li class="covered" data-hits="1" data-linenumber="86">
<span class="hits">1</span>
<code class="ruby"> def self.execute(command)</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="82">
+ <li class="covered" data-hits="5" data-linenumber="87">
<span class="hits">5</span>
<code class="ruby"> pipe = IO.popen(command)</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="83">
+ <li class="covered" data-hits="5" data-linenumber="88">
<span class="hits">5</span>
<code class="ruby"> pid = pipe.pid</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="84">
+ <li class="covered" data-hits="5" data-linenumber="89">
<span class="hits">5</span>
<code class="ruby"> pid, status = Process.wait2(pid)</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="85">
+ <li class="covered" data-hits="5" data-linenumber="90">
<span class="hits">5</span>
- <code class="ruby"> result = CommandRunResult.new(status, {1 => pipe.read})</code>
+ <code class="ruby"> result = CommandRunResult.new(command, status, {1 => pipe.read})</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="86">
+ <li class="covered" data-hits="5" data-linenumber="91">
<span class="hits">5</span>
<code class="ruby"> pipe.close</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="87">
+ <li class="covered" data-hits="5" data-linenumber="92">
<span class="hits">5</span>
<code class="ruby"> return result</code>
</li>
- <li class="never" data-hits="" data-linenumber="88">
+ <li class="never" data-hits="" data-linenumber="93">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="89">
+ <li class="never" data-hits="" data-linenumber="94">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="90">
+ <li class="covered" data-hits="1" data-linenumber="95">
<span class="hits">1</span>
<code class="ruby"> def run</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="91">
+ <li class="covered" data-hits="7" data-linenumber="96">
<span class="hits">7</span>
- <code class="ruby"> print command + " " if $verbose</code>
+ <code class="ruby"> print command + " " if verbose</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="92">
+ <li class="covered" data-hits="7" data-linenumber="97">
<span class="hits">7</span>
<code class="ruby"> result = self.class.execute(command)</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="93">
+ <li class="covered" data-hits="7" data-linenumber="98">
<span class="hits">7</span>
- <code class="ruby"> print "=> #{result.exit_code}" if $verbose</code>
+ <code class="ruby"> print "=> #{result.exit_code}" if verbose</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="94">
+ <li class="covered" data-hits="7" data-linenumber="99">
<span class="hits">7</span>
<code class="ruby"> return result</code>
</li>
- <li class="never" data-hits="" data-linenumber="95">
+ <li class="never" data-hits="" data-linenumber="100">
<code class="ruby"> ensure</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="96">
+ <li class="covered" data-hits="7" data-linenumber="101">
<span class="hits">7</span>
- <code class="ruby"> puts if $verbose</code>
+ <code class="ruby"> puts if verbose</code>
</li>
- <li class="never" data-hits="" data-linenumber="97">
+ <li class="never" data-hits="" data-linenumber="102">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="98">
+ <li class="never" data-hits="" data-linenumber="103">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="99">
+ <li class="covered" data-hits="1" data-linenumber="104">
<span class="hits">1</span>
<code class="ruby"> def succeeds?</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="100">
+ <li class="covered" data-hits="3" data-linenumber="105">
<span class="hits">3</span>
<code class="ruby"> run.succeeded?</code>
</li>
- <li class="never" data-hits="" data-linenumber="101">
+ <li class="never" data-hits="" data-linenumber="106">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="102">
+ <li class="never" data-hits="" data-linenumber="107">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="103">
+ <li class="covered" data-hits="1" data-linenumber="108">
<span class="hits">1</span>
<code class="ruby"> def must_succeed!</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="104">
+ <li class="covered" data-hits="2" data-linenumber="109">
<span class="hits">2</span>
<code class="ruby"> run.must_succeed!</code>
</li>
- <li class="never" data-hits="" data-linenumber="105">
+ <li class="never" data-hits="" data-linenumber="110">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="106">
+ <li class="never" data-hits="" data-linenumber="111">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="107">
+ <li class="never" data-hits="" data-linenumber="112">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="108">
+ <li class="covered" data-hits="1" data-linenumber="113">
<span class="hits">1</span>
<code class="ruby"> class ShellEscaped < CommandLine</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="109">
+ <li class="covered" data-hits="1" data-linenumber="114">
<span class="hits">1</span>
<code class="ruby"> def initialize(cmd)</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="110">
+ <li class="covered" data-hits="2" data-linenumber="115">
<span class="hits">2</span>
<code class="ruby"> @escaped = cmd</code>
</li>
- <li class="never" data-hits="" data-linenumber="111">
+ <li class="never" data-hits="" data-linenumber="116">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="112">
+ <li class="never" data-hits="" data-linenumber="117">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="113">
+ <li class="covered" data-hits="1" data-linenumber="118">
<span class="hits">1</span>
<code class="ruby"> def command</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="114">
+ <li class="covered" data-hits="2" data-linenumber="119">
<span class="hits">2</span>
<code class="ruby"> "'" + @escaped.command.gsub(/'/,"\'") + "'"</code>
</li>
- <li class="never" data-hits="" data-linenumber="115">
+ <li class="never" data-hits="" data-linenumber="120">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="116">
+ <li class="never" data-hits="" data-linenumber="121">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="117">
+ <li class="covered" data-hits="1" data-linenumber="122">
<span class="hits">1</span>
<code class="ruby"> def name</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="118">
+ <li class="missed" data-hits="0" data-linenumber="123">
<code class="ruby"> @name || @escaped.name</code>
</li>
- <li class="never" data-hits="" data-linenumber="119">
+ <li class="never" data-hits="" data-linenumber="124">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="120">
+ <li class="never" data-hits="" data-linenumber="125">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="121">
+ <li class="never" data-hits="" data-linenumber="126">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="122">
+ <li class="covered" data-hits="1" data-linenumber="127">
<span class="hits">1</span>
<code class="ruby"> class CommandChain < CommandLine</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="123">
+ <li class="covered" data-hits="1" data-linenumber="128">
<span class="hits">1</span>
<code class="ruby"> def initialize</code>
</li>
- <li class="covered" data-hits="4" data-linenumber="124">
+ <li class="covered" data-hits="4" data-linenumber="129">
<span class="hits">4</span>
<code class="ruby"> @commands = []</code>
</li>
- <li class="covered" data-hits="4" data-linenumber="125">
+ <li class="covered" data-hits="4" data-linenumber="130">
<span class="hits">4</span>
<code class="ruby"> yield self if block_given?</code>
</li>
- <li class="never" data-hits="" data-linenumber="126">
+ <li class="never" data-hits="" data-linenumber="131">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="127">
+ <li class="never" data-hits="" data-linenumber="132">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="128">
+ <li class="covered" data-hits="1" data-linenumber="133">
<span class="hits">1</span>
<code class="ruby"> attr_reader :commands</code>
</li>
- <li class="never" data-hits="" data-linenumber="129">
+ <li class="never" data-hits="" data-linenumber="134">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="130">
+ <li class="covered" data-hits="1" data-linenumber="135">
<span class="hits">1</span>
<code class="ruby"> def add(cmd)</code>
</li>
- <li class="covered" data-hits="8" data-linenumber="131">
+ <li class="covered" data-hits="8" data-linenumber="136">
<span class="hits">8</span>
<code class="ruby"> yield cmd if block_given?</code>
</li>
- <li class="covered" data-hits="8" data-linenumber="132">
+ <li class="covered" data-hits="8" data-linenumber="137">
<span class="hits">8</span>
<code class="ruby"> @commands << cmd</code>
</li>
- <li class="never" data-hits="" data-linenumber="133">
+ <li class="never" data-hits="" data-linenumber="138">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="134">
+ <li class="never" data-hits="" data-linenumber="139">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="135">
+ <li class="covered" data-hits="1" data-linenumber="140">
<span class="hits">1</span>
<code class="ruby"> def name</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="136">
+ <li class="missed" data-hits="0" data-linenumber="141">
<code class="ruby"> @name || @commands.last.name</code>
</li>
- <li class="never" data-hits="" data-linenumber="137">
+ <li class="never" data-hits="" data-linenumber="142">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="138">
+ <li class="never" data-hits="" data-linenumber="143">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="139">
+ <li class="never" data-hits="" data-linenumber="144">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="140">
+ <li class="covered" data-hits="1" data-linenumber="145">
<span class="hits">1</span>
<code class="ruby"> class WrappingChain < CommandChain</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="141">
+ <li class="covered" data-hits="1" data-linenumber="146">
<span class="hits">1</span>
<code class="ruby"> def command</code>
</li>
- <li class="covered" data-hits="6" data-linenumber="142">
+ <li class="covered" data-hits="6" data-linenumber="147">
<span class="hits">6</span>
<code class="ruby"> @commands.map{|cmd| cmd.command}.join(" -- ")</code>
</li>
- <li class="never" data-hits="" data-linenumber="143">
+ <li class="never" data-hits="" data-linenumber="148">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="144">
+ <li class="never" data-hits="" data-linenumber="149">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="145">
+ <li class="never" data-hits="" data-linenumber="150">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="146">
+ <li class="covered" data-hits="1" data-linenumber="151">
<span class="hits">1</span>
<code class="ruby"> class PrereqChain < CommandChain</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="147">
+ <li class="covered" data-hits="1" data-linenumber="152">
<span class="hits">1</span>
<code class="ruby"> def command</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="148">
+ <li class="covered" data-hits="3" data-linenumber="153">
<span class="hits">3</span>
<code class="ruby"> @commands.map{|cmd| cmd.command}.join(" && ")</code>
</li>
- <li class="never" data-hits="" data-linenumber="149">
+ <li class="never" data-hits="" data-linenumber="154">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="150">
+ <li class="never" data-hits="" data-linenumber="155">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="151">
+ <li class="never" data-hits="" data-linenumber="156">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="152">
+ <li class="covered" data-hits="1" data-linenumber="157">
<span class="hits">1</span>
<code class="ruby"> class PipelineChain < CommandChain</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="153">
+ <li class="covered" data-hits="1" data-linenumber="158">
<span class="hits">1</span>
<code class="ruby"> def command</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="154">
+ <li class="covered" data-hits="3" data-linenumber="159">
<span class="hits">3</span>
<code class="ruby"> @commands.map{|cmd| cmd.command}.join(" | ")</code>
</li>
- <li class="never" data-hits="" data-linenumber="155">
+ <li class="never" data-hits="" data-linenumber="160">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="156">
+ <li class="never" data-hits="" data-linenumber="161">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="157">
+ <li class="never" data-hits="" data-linenumber="162">
<code class="ruby">end</code>
</li>
@@ -2145,413 +2175,437 @@
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="86">
+ <li class="never" data-hits="" data-linenumber="86">
+
+
+ <code class="ruby"> # @macro [attack] configurable_property</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="87">
+
+
+ <code class="ruby"> # @method $1</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="88">
+
+
+ <code class="ruby"> # @return [$2] The default value of $1</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="89">
+
+
+ <code class="ruby"> # @method $1=</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="90">
<span class="hits">1</span>
<code class="ruby"> def setting(name, default_value = RequiredField)</code>
</li>
- <li class="covered" data-hits="18" data-linenumber="87">
+ <li class="covered" data-hits="18" data-linenumber="91">
<span class="hits">18</span>
<code class="ruby"> name = name.to_sym</code>
</li>
- <li class="covered" data-hits="18" data-linenumber="88">
+ <li class="covered" data-hits="18" data-linenumber="92">
<span class="hits">18</span>
<code class="ruby"> attr_accessor(name)</code>
</li>
- <li class="covered" data-hits="18" data-linenumber="89">
+ <li class="covered" data-hits="18" data-linenumber="93">
<span class="hits">18</span>
<code class="ruby"> if default_values.has_key?(name) and default_values[name] != default_value</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="90">
+ <li class="missed" data-hits="0" data-linenumber="94">
<code class="ruby"> warn "Changing default value of #{self.name}##{name} from #{default_values[name].inspect} to #{default_value.inspect}"</code>
</li>
- <li class="never" data-hits="" data-linenumber="91">
+ <li class="never" data-hits="" data-linenumber="95">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="18" data-linenumber="92">
+ <li class="covered" data-hits="18" data-linenumber="96">
<span class="hits">18</span>
<code class="ruby"> default_values[name] = default_value</code>
</li>
- <li class="never" data-hits="" data-linenumber="93">
+ <li class="never" data-hits="" data-linenumber="97">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="94">
+ <li class="never" data-hits="" data-linenumber="98">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="95">
+ <li class="covered" data-hits="1" data-linenumber="99">
<span class="hits">1</span>
<code class="ruby"> def settings(hash)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="96">
+ <li class="covered" data-hits="1" data-linenumber="100">
<span class="hits">1</span>
<code class="ruby"> hash.each_pair do |name, value|</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="97">
+ <li class="covered" data-hits="2" data-linenumber="101">
<span class="hits">2</span>
<code class="ruby"> setting(name, value)</code>
</li>
- <li class="never" data-hits="" data-linenumber="98">
+ <li class="never" data-hits="" data-linenumber="102">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="99">
+ <li class="covered" data-hits="1" data-linenumber="103">
<span class="hits">1</span>
<code class="ruby"> return self</code>
</li>
- <li class="never" data-hits="" data-linenumber="100">
+ <li class="never" data-hits="" data-linenumber="104">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="101">
+ <li class="never" data-hits="" data-linenumber="105">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="102">
+ <li class="covered" data-hits="1" data-linenumber="106">
<span class="hits">1</span>
<code class="ruby"> def included(mod)</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="103">
+ <li class="covered" data-hits="5" data-linenumber="107">
<span class="hits">5</span>
<code class="ruby"> mod.extend ClassMethods</code>
</li>
- <li class="never" data-hits="" data-linenumber="104">
+ <li class="never" data-hits="" data-linenumber="108">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="105">
+ <li class="never" data-hits="" data-linenumber="109">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="106">
+ <li class="covered" data-hits="1" data-linenumber="110">
<span class="hits">1</span>
<code class="ruby"> extend ClassMethods</code>
</li>
- <li class="never" data-hits="" data-linenumber="107">
+ <li class="never" data-hits="" data-linenumber="111">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="108">
+ <li class="covered" data-hits="1" data-linenumber="112">
<span class="hits">1</span>
<code class="ruby"> def copy_settings_to(other)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="109">
+ <li class="covered" data-hits="1" data-linenumber="113">
<span class="hits">1</span>
<code class="ruby"> self.class.copy_settings(self, other)</code>
</li>
- <li class="never" data-hits="" data-linenumber="110">
+ <li class="never" data-hits="" data-linenumber="114">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="111">
+ <li class="never" data-hits="" data-linenumber="115">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="112">
+ <li class="covered" data-hits="1" data-linenumber="116">
<span class="hits">1</span>
<code class="ruby"> def setup_defaults</code>
</li>
- <li class="covered" data-hits="10" data-linenumber="113">
+ <li class="covered" data-hits="10" data-linenumber="117">
<span class="hits">10</span>
<code class="ruby"> self.class.set_defaults_on(self)</code>
</li>
- <li class="covered" data-hits="10" data-linenumber="114">
+ <li class="covered" data-hits="10" data-linenumber="118">
<span class="hits">10</span>
<code class="ruby"> self</code>
</li>
- <li class="never" data-hits="" data-linenumber="115">
+ <li class="never" data-hits="" data-linenumber="119">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="116">
+ <li class="never" data-hits="" data-linenumber="120">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="117">
+ <li class="covered" data-hits="1" data-linenumber="121">
<span class="hits">1</span>
<code class="ruby"> def check_required</code>
</li>
- <li class="covered" data-hits="9" data-linenumber="118">
+ <li class="covered" data-hits="9" data-linenumber="122">
<span class="hits">9</span>
<code class="ruby"> missing = self.class.missing_required_fields_on(self)</code>
</li>
- <li class="covered" data-hits="9" data-linenumber="119">
+ <li class="covered" data-hits="9" data-linenumber="123">
<span class="hits">9</span>
<code class="ruby"> unless missing.empty?</code>
</li>
- <li class="covered" data-hits="5" data-linenumber="120">
+ <li class="covered" data-hits="5" data-linenumber="124">
<span class="hits">5</span>
<code class="ruby"> raise "Required field#{missing.length > 1 ? "s" : ""} #{missing.map{|field| field.to_s.inspect}.join(", ")} unset on #{self.inspect}"</code>
</li>
- <li class="never" data-hits="" data-linenumber="121">
+ <li class="never" data-hits="" data-linenumber="125">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="122">
+ <li class="covered" data-hits="7" data-linenumber="126">
<span class="hits">7</span>
<code class="ruby"> self</code>
</li>
- <li class="never" data-hits="" data-linenumber="123">
+ <li class="never" data-hits="" data-linenumber="127">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="124">
+ <li class="never" data-hits="" data-linenumber="128">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="125">
+ <li class="covered" data-hits="1" data-linenumber="129">
<span class="hits">1</span>
<code class="ruby"> def setting(name, default_value = nil)</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="126">
+ <li class="covered" data-hits="3" data-linenumber="130">
<span class="hits">3</span>
<code class="ruby"> self.class.setting(name, default_value)</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="127">
+ <li class="covered" data-hits="3" data-linenumber="131">
<span class="hits">3</span>
<code class="ruby"> instance_variable_set("@#{name}", default_value)</code>
</li>
- <li class="never" data-hits="" data-linenumber="128">
+ <li class="never" data-hits="" data-linenumber="132">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="129">
+ <li class="never" data-hits="" data-linenumber="133">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="130">
+ <li class="covered" data-hits="1" data-linenumber="134">
<span class="hits">1</span>
<code class="ruby"> def settings(hash)</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="131">
+ <li class="covered" data-hits="2" data-linenumber="135">
<span class="hits">2</span>
<code class="ruby"> hash.each_pair do |name, value|</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="132">
+ <li class="covered" data-hits="3" data-linenumber="136">
<span class="hits">3</span>
<code class="ruby"> setting(name, value)</code>
</li>
- <li class="never" data-hits="" data-linenumber="133">
+ <li class="never" data-hits="" data-linenumber="137">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="2" data-linenumber="134">
+ <li class="covered" data-hits="2" data-linenumber="138">
<span class="hits">2</span>
<code class="ruby"> return self</code>
</li>
- <li class="never" data-hits="" data-linenumber="135">
+ <li class="never" data-hits="" data-linenumber="139">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="136">
+ <li class="never" data-hits="" data-linenumber="140">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="137">
+ <li class="covered" data-hits="1" data-linenumber="141">
<span class="hits">1</span>
<code class="ruby"> def required_fields(*names)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="138">
+ <li class="covered" data-hits="1" data-linenumber="142">
<span class="hits">1</span>
<code class="ruby"> self.class.required_fields(*names)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="139">
+ <li class="covered" data-hits="1" data-linenumber="143">
<span class="hits">1</span>
<code class="ruby"> self</code>
</li>
- <li class="never" data-hits="" data-linenumber="140">
+ <li class="never" data-hits="" data-linenumber="144">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="141">
+ <li class="covered" data-hits="1" data-linenumber="145">
<span class="hits">1</span>
<code class="ruby"> alias required_field required_fields</code>
</li>
- <li class="never" data-hits="" data-linenumber="142">
+ <li class="never" data-hits="" data-linenumber="146">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="143">
+ <li class="covered" data-hits="1" data-linenumber="147">
<span class="hits">1</span>
<code class="ruby"> def nil_fields(*names)</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="144">
+ <li class="missed" data-hits="0" data-linenumber="148">
<code class="ruby"> self.class.nil_fields(*names)</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="145">
+ <li class="missed" data-hits="0" data-linenumber="149">
<code class="ruby"> self</code>
</li>
- <li class="never" data-hits="" data-linenumber="146">
+ <li class="never" data-hits="" data-linenumber="150">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="147">
+ <li class="covered" data-hits="1" data-linenumber="151">
<span class="hits">1</span>
<code class="ruby"> alias nil_field nil_fields</code>
</li>
- <li class="never" data-hits="" data-linenumber="148">
+ <li class="never" data-hits="" data-linenumber="152">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="149">
+ <li class="covered" data-hits="1" data-linenumber="153">
<span class="hits">1</span>
<code class="ruby"> class Struct</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="150">
+ <li class="covered" data-hits="1" data-linenumber="154">
<span class="hits">1</span>
<code class="ruby"> include Configurable</code>
</li>
- <li class="never" data-hits="" data-linenumber="151">
+ <li class="never" data-hits="" data-linenumber="155">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="152">
+ <li class="never" data-hits="" data-linenumber="156">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="153">
+ <li class="never" data-hits="" data-linenumber="157">
<code class="ruby">end</code>
</li>
@@ -2940,10 +2994,10 @@
</li>
<li class="covered" data-hits="1" data-linenumber="29">
<span class="hits">1</span>
- <code class="ruby"> task =task_class.define_task(*task_args) do</code>
+ <code class="ruby"> task = task_class.define_task(*task_args) do</code>
</li>
<li class="covered" data-hits="1" data-linenumber="30">
<span class="hits">1</span>