Sha256: 5c1c5f253c6a3a575889aafbce70619d2985925b00ac5ae358ee019aefa89b6a
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
module Runbook class Toolbox attr_reader :prompt def initialize @prompt = TTY::Prompt.new end def ask(msg, default: nil, echo: true) prompt.ask(msg, default: default, echo: echo) end def expand(msg, choices) prompt.expand(msg, choices) end def yes?(msg) prompt.yes?(msg) end def output(msg) prompt.say(msg) end def warn(msg) prompt.warn(msg) end def error(msg) prompt.error(msg) end def exit(return_value) super(return_value) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
careacademy-runbook-1.2.0 | lib/runbook/toolbox.rb |
runbook-1.1.0 | lib/runbook/toolbox.rb |
runbook-1.0.0 | lib/runbook/toolbox.rb |