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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/command.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 060e7fd015c718fe28fb95dc1d3876a1ba9bcba2
4
- data.tar.gz: 3ee4ddcd0c4e236b701bb6d0e9d11daf27935ff1
3
+ metadata.gz: b5f152019d6c0c43b3e25e62f6c13457e197d47d
4
+ data.tar.gz: d7e70d0065475c06e1d1333c8ef3ee319a601c92
5
5
  SHA512:
6
- metadata.gz: 7980394753bf505cc41bc56fe358287265cde882720b6d1e44a01f89ccb69953620c269e8360ec4531186a198ddc031165ad46d3e25e953899ad1bf0154c1a66
7
- data.tar.gz: 8f0c91edfd4c42e488c36b6291e4166566c9fa2ccee273b6e9e718e771e1140cc8fdd4cf7e7358e7e6ce296828fafb79ecf34b1dc67707abce4ee9d29e7e9a7d
6
+ metadata.gz: c97b3f4ae9dccc4ba2b70088b3bb10c112d32b6e5f0081b3a75181fa330963d9c4ad8560af677e712a6381ffda93dd2dafc683c5ef3d3866c3441bb0863a9535
7
+ data.tar.gz: cc0e50252e94cd1f9749d5e9d6f93d08e863abfd4733a77818342948ec7b12fd82227d7fc2df49157ce5a03bef7e245ea2d01d9a589e141523f878430a49cead
@@ -49,11 +49,13 @@ class Command < Hash
49
49
  end
50
50
 
51
51
  def execute
52
- puts "#{self[:input]}" if(!self.has_key?(:quiet) || !self[:quiet])
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow