Module: Drakkon::Gems::Install

Defined in:
lib/drakkon/gem/install.rb

Overview

Run Command for CLI

Class Method Summary collapse

Class Method Details

.optsObject



5
6
7
# File 'lib/drakkon/gem/install.rb', line 5

def self.opts
  @opts
end

.promptObject



16
17
18
# File 'lib/drakkon/gem/install.rb', line 16

def self.prompt
  TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
end

.start(args) ⇒ Object



9
10
11
12
13
14
# File 'lib/drakkon/gem/install.rb', line 9

def self.start(args)
  gem = Gems::Gem.new
  gem.intall_setup(args)
rescue TTY::Reader::InputInterrupt
  exit 0
end