lib/shared.rb in markdown_exec-1.3.0 vs lib/shared.rb in markdown_exec-1.3.1
- old
+ new
@@ -8,14 +8,15 @@
BF = 'bin'
# display_level values
DISPLAY_LEVEL_BASE = 0 # required output
-DISPLAY_LEVEL_ADMIN = 1
+DISPLAY_LEVEL_ADMIN = 1 # monit
DISPLAY_LEVEL_DEBUG = 2
+DISPLAY_LEVEL_DUMP = 3
DISPLAY_LEVEL_DEFAULT = DISPLAY_LEVEL_ADMIN
-DISPLAY_LEVEL_MAX = DISPLAY_LEVEL_DEBUG
+DISPLAY_LEVEL_MAX = DISPLAY_LEVEL_DUMP
# @execute_files[ind] = @execute_files[ind] + [block]
EF_STDOUT = 0
EF_STDERR = 1
EF_STDIN = 2
@@ -23,18 +24,6 @@
LOCAL_YML = 'menu.yml'
MENU_YML = "lib/#{LOCAL_YML}"
def menu_from_yaml
YAML.load File.open(File.join(File.expand_path(__dir__), LOCAL_YML))
-end
-
-# skip :reek:UtilityFunction
-def value_for_cli(value)
- case value.class.to_s
- when 'String'
- Shellwords.escape value
- when 'FalseClass', 'TrueClass'
- value ? '1' : '0'
- else
- Shellwords.escape value.to_s
- end
end