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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/opswalrus/host.rb +1 -1
- data/lib/opswalrus/ops_file_script.rb +1 -1
- data/lib/opswalrus/ops_file_script_dsl.rb +2 -2
- data/lib/opswalrus/version.rb +1 -1
- data/lib/opswalrus/walrus_lang.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a8829f40ddadca854579786cb5c26aa6d67967afe3805930028cd9d65565267
|
4
|
+
data.tar.gz: d3bc1e8772b1f52cac6ff4625509eede301cb4cffc686eae9a12f4013d55c412
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14f5e7f7efc6651e506110ccde42a403e9fd69fe0a64d4ca44b4e5622da92900d21a88191437fad7b73fc52e880af02a2ebfc5f3b2035d83c006efd9a86cca13
|
7
|
+
data.tar.gz: 15149d50ef7c8ae277d2fd8044fc6f096b5472a1b565978231d82568fa3db6b60dfa6c405ba1c5cceb86a415914f2096405e9c32c0ba6692c5fa2b28c023d33f
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/host.rb
CHANGED
@@ -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 =
|
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(
|
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
|
data/lib/opswalrus/version.rb
CHANGED
@@ -74,8 +74,10 @@ class String
|
|
74
74
|
WalrusLang.render(self, hash)
|
75
75
|
end
|
76
76
|
|
77
|
-
|
78
|
-
|
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
|
|