Class: Runbook::CLI
Instance Method Summary collapse
- #__print_version ⇒ Object
- #exec(runbook) ⇒ Object
- #init ⇒ Object
- #install ⇒ Object
- #view(runbook) ⇒ Object
Methods included from CLIBase
Instance Method Details
#__print_version ⇒ Object
97 98 99 |
# File 'lib/runbook/cli.rb', line 97 def __print_version puts "Runbook v#{Runbook::VERSION}" end |
#exec(runbook) ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/runbook/cli.rb', line 57 def exec(runbook) runbook = _retrieve_runbook(runbook, :exec) Runbook::Runner.new(runbook).run( run: [:run], noop: [:noop], auto: [:auto], paranoid: [:"no-paranoid"] == nil, start_at: [:start_at], ) end |
#init ⇒ Object
81 82 83 |
# File 'lib/runbook/cli.rb', line 81 def init invoke(Runbook::Initializer) end |
#install ⇒ Object
91 92 93 94 |
# File 'lib/runbook/cli.rb', line 91 def install Runbook.deprecator.deprecation_warning(:install, :init) invoke(Runbook::Initializer) end |