patir 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/docu/index.html +10 -1
- data/lib/patir/base.rb +1 -1
- data/lib/patir/command.rb +5 -5
- data/lib/patir/configuration.rb +0 -3
- metadata +3 -3
data/History.txt
CHANGED
data/docu/index.html
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
Don't expect this library to grow very much, as we aim to keep it simple, stable and above all usable by all the tools under patir.<br>
|
36
36
|
</p>
|
37
37
|
<p>
|
38
|
-
You can browse the <a href="http://
|
38
|
+
You can browse the <a href="http://patir.rubyforge.org/svn/">patir subversion repository</a>.
|
39
39
|
</p>
|
40
40
|
<p>
|
41
41
|
Like all self-conscious developers the patir team does not claim infalibility. Neither are we to proud to have our flaws pointed out, so if and when you find a bug, please post a report in our <a href="http://rubyforge.org/tracker/?group_id=3597">Bugtracker</a>
|
@@ -45,6 +45,15 @@
|
|
45
45
|
<div id="leftpanel">
|
46
46
|
<div align="justify" class="graypanel">
|
47
47
|
<span class="smalltitle">News</span><br /><br />
|
48
|
+
<span class="smallredtext">12 March 2008</span><br />
|
49
|
+
<span class="bodytext">rutema v0.6.2 is out!.</span><br />
|
50
|
+
<a href="rutema062.html" class="smallgraytext">More...</a><br /><br />
|
51
|
+
<span class="smallredtext">28 Februar 2008</span><br />
|
52
|
+
<span class="bodytext">rutema v0.6.1 is out!.</span><br />
|
53
|
+
<a href="rutema061.html" class="smallgraytext">More...</a><br /><br />
|
54
|
+
<span class="smallredtext">27 Februar 2008</span><br />
|
55
|
+
<span class="bodytext">rutema v0.6.0 is out!.</span><br />
|
56
|
+
<a href="rutema060.html" class="smallgraytext">More...</a><br /><br />
|
48
57
|
<span class="smallredtext">26 Februar 2008</span><br />
|
49
58
|
<span class="bodytext">rutema v0.5.0 is out!.</span><br />
|
50
59
|
<a href="rutema050.html" class="smallgraytext">More...</a><br /><br />
|
data/lib/patir/base.rb
CHANGED
data/lib/patir/command.rb
CHANGED
@@ -117,9 +117,9 @@ module Patir
|
|
117
117
|
params=args[0] if args
|
118
118
|
raise ParameterException,"No ShellCommand parameters defined" unless params
|
119
119
|
@name=params[:name]
|
120
|
-
@working_directory=
|
121
|
-
#initialize the working directory value.
|
122
|
-
@working_directory||=
|
120
|
+
@working_directory=params[:working_directory] if params[:working_directory]
|
121
|
+
#initialize the working directory value.
|
122
|
+
@working_directory||="."
|
123
123
|
#we need a command line :)
|
124
124
|
raise ParameterException,"No :command defined" unless params[:cmd]
|
125
125
|
@command=params[:cmd]
|
@@ -131,7 +131,7 @@ module Patir
|
|
131
131
|
start_time=Time.now
|
132
132
|
super
|
133
133
|
#create the working directory if it does not exist
|
134
|
-
FileUtils::mkdir_p(@working_directory)
|
134
|
+
FileUtils::mkdir_p(@working_directory,:verbose=>false)
|
135
135
|
#create the actual command, run it, grab stderr and stdout and set output,error, status and execution time
|
136
136
|
status, @output, @error = systemu(@command,:cwd=>@working_directory)
|
137
137
|
#lets get the status how we want it
|
@@ -150,7 +150,7 @@ module Patir
|
|
150
150
|
end
|
151
151
|
|
152
152
|
def to_s
|
153
|
-
return "#{@name}: #{@command} in #{
|
153
|
+
return "#{@name}: #{@command} in #{@working_directory}"
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
data/lib/patir/configuration.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vassilis Rizopoulos
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-03-12 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: 1.5.
|
31
|
+
version: 1.5.1
|
32
32
|
version:
|
33
33
|
description: "== SYNOPSIS: patir is the library of common functionality used in the patir projects. This includes a class that allows you to build configuration files in Ruby and a library for command abstraction. == REQUIREMENTS: * systemu"
|
34
34
|
email: riva@braveworld.net
|