opswalrus 1.0.37 → 1.0.38

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab53631e63fd44c1825e7a38721905420b063e4480ace3cb48c9d5aad922dc14
4
- data.tar.gz: aecd03aadaab772dfae1e8379036038ed17e0c57b78c75c178f70c4b3a65afeb
3
+ metadata.gz: 6a8829f40ddadca854579786cb5c26aa6d67967afe3805930028cd9d65565267
4
+ data.tar.gz: d3bc1e8772b1f52cac6ff4625509eede301cb4cffc686eae9a12f4013d55c412
5
5
  SHA512:
6
- metadata.gz: af2a6bc851e53a1bee7e2b1d9d7dd57f2f953661223d464f57c7e7e8157b4ab725c9db90cc835380c12c6a9f5438a515e435cf4009e753492c6304e7a3b2a750
7
- data.tar.gz: 15fbd461e6c794325bee7def61a517b91c840318348b83e83639c175d3efb5f1a5cbd424b6a8634bfdc20c2b2805af383aee3ce1d7870a1dd222e843ef9ed509
6
+ metadata.gz: 14f5e7f7efc6651e506110ccde42a403e9fd69fe0a64d4ca44b4e5622da92900d21a88191437fad7b73fc52e880af02a2ebfc5f3b2035d83c006efd9a86cca13
7
+ data.tar.gz: 15149d50ef7c8ae277d2fd8044fc6f096b5472a1b565978231d82568fa3db6b60dfa6c405ba1c5cceb86a415914f2096405e9c32c0ba6692c5fa2b28c023d33f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.37)
4
+ opswalrus (1.0.38)
5
5
  amazing_print (~> 1.5)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  binding_of_caller (~> 1.0)
@@ -224,7 +224,7 @@ module OpsWalrus
224
224
  end
225
225
 
226
226
  def desc(msg)
227
- puts msg.mustache(2)
227
+ puts msg.mustache(1)
228
228
  end
229
229
 
230
230
  def host_prop(name)
@@ -162,7 +162,7 @@ module OpsWalrus
162
162
 
163
163
  def exit(exit_status, message = nil)
164
164
  if message
165
- puts message.mustache(3)
165
+ puts message.mustache(1)
166
166
  end
167
167
  result = if exit_status == 0
168
168
  Invocation::Success.new(nil)
@@ -208,7 +208,7 @@ module OpsWalrus
208
208
  # end
209
209
 
210
210
  def desc(msg)
211
- puts msg.mustache(2)
211
+ puts msg.mustache(1)
212
212
  end
213
213
 
214
214
  # runs the given command
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.37"
2
+ VERSION = "1.0.38"
3
3
  end
@@ -74,8 +74,10 @@ class String
74
74
  WalrusLang.render(self, hash)
75
75
  end
76
76
 
77
- def mustache(bindings_from_stack_frame_offset = 2)
78
- WalrusLang.eval(self, bindings_from_stack_frame_offset)
77
+ # bindings_from_stack_frame_offset is a count relative to the stack from from which #mustache is called
78
+ def mustache(bindings_from_stack_frame_offset = 0)
79
+ base_offset = 2
80
+ WalrusLang.eval(self, base_offset + bindings_from_stack_frame_offset)
79
81
  end
80
82
  end
81
83
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opswalrus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.37
4
+ version: 1.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis