module Jive
Constants
- VERSION
Public Class Methods
home()
click to toggle source
# File lib/jive.rb, line 35 def self.home @home ||= Pathname(Dir.home).join(".jive") end
prompt?(items, display: ->(x) { x }
click to toggle source
# File lib/jive.rb, line 39 def self.prompt?(items, display: ->(x) { x }) CLI::UI::Prompt.ask("Choose?") do |handler| items.each do |item| handler.option(display.call(item)) do |_selection| return item end end end end
root()
click to toggle source
# File lib/jive.rb, line 23 def self.root @root ||= Pathname.new(__FILE__).parent.parent end
run(tasks)
click to toggle source
# File lib/jive.rb, line 27 def self.run(tasks) Jive::BatchRunner.new.run(tasks) end
shell()
click to toggle source
# File lib/jive.rb, line 31 def self.shell @shell ||= ::Jive::Shell.new end