dev_commands 0.0.44 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/command.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f152019d6c0c43b3e25e62f6c13457e197d47d
|
4
|
+
data.tar.gz: d7e70d0065475c06e1d1333c8ef3ee319a601c92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c97b3f4ae9dccc4ba2b70088b3bb10c112d32b6e5f0081b3a75181fa330963d9c4ad8560af677e712a6381ffda93dd2dafc683c5ef3d3866c3441bb0863a9535
|
7
|
+
data.tar.gz: cc0e50252e94cd1f9749d5e9d6f93d08e863abfd4733a77818342948ec7b12fd82227d7fc2df49157ce5a03bef7e245ea2d01d9a589e141523f878430a49cead
|
data/lib/command.rb
CHANGED
@@ -49,11 +49,13 @@ class Command < Hash
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def execute
|
52
|
-
|
52
|
+
|
53
53
|
pwd=Dir.pwd
|
54
54
|
Dir.chdir(self[:directory]) if(self.has_key?(:directory) && File.exists?(self[:directory]))
|
55
55
|
self[:directory] = pwd if(self[:directory].length==0)
|
56
56
|
|
57
|
+
puts "#{self[:input]} (#{self[:directory]})" if(!self.has_key?(:quiet) || !self[:quiet])
|
58
|
+
|
57
59
|
self[:machine] = Command.machine
|
58
60
|
self[:user] = Command.user
|
59
61
|
|