opswalrus 1.0.36 → 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: 60ed1418b527a8f5ef37e9d54055a9e9da76c6811ac9c84a0b71f9025e33b6ff
4
- data.tar.gz: 763003e1261bb724b5ebb061b83a662a33fd0dc4f742c3fe0971a5ab1532ea57
3
+ metadata.gz: 6a8829f40ddadca854579786cb5c26aa6d67967afe3805930028cd9d65565267
4
+ data.tar.gz: d3bc1e8772b1f52cac6ff4625509eede301cb4cffc686eae9a12f4013d55c412
5
5
  SHA512:
6
- metadata.gz: ae75edcfac60e9c4a085144ba6111422c135a0737e772c75a740d51aca456861c29570344d79922c58bdf7facd94cb6eb451c3b3e3b65291bafa12c333b13c98
7
- data.tar.gz: 57f893715ebc410018ccb00f7f048641af2ab0d0ec1d74a15a235e8df8072f450b63f98c4115c1fb9eb8c934718d4cfb52e368f9a61a0d70f035d400bd482ec1
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.36)
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
227
+ puts msg.mustache(1)
228
228
  end
229
229
 
230
230
  def host_prop(name)
@@ -146,7 +146,7 @@ module OpsWalrus
146
146
  end
147
147
  INVOKE_METHOD
148
148
 
149
- invoke_method_line_count_prior_to_ruby_script_from_ops_file = 3
149
+ invoke_method_line_count_prior_to_ruby_script_from_ops_file = 4
150
150
  klass.module_eval(invoke_method_definition, ops_file.ops_file_path.to_s, ops_file.script_line_offset - invoke_method_line_count_prior_to_ruby_script_from_ops_file)
151
151
 
152
152
  klass
@@ -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
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.36"
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.36
4
+ version: 1.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis