Sha256: 623adef4b957891646a0393a16537646e54c0cad4d5f901537e94fccafc2955d
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
# frozen_string_literal: true module InstallGemLocal class Navigation class << self def start options = { 'a' => { 'value' => 'remove_gem', 'display' => 'Remove old version' }, 'b' => { 'value' => 'build_gem', 'display' => 'Build new version' }, 'c' => { 'value' => 'install_gem', 'display' => 'Install new version' }, 'd' => { 'value' => 'copy_gem', 'display' => 'Copy gem to folder' }, 'e' => { 'value' => 'push_gem', 'display' => 'Build the latest version and push the gem' }, 'f' => { 'value' => 'till_install', 'display' => 'Remove old version, build and install the new version' }, 'g' => { 'value' => 'till_copy', 'display' => 'Remove old version, build, install and copy the new version' }, '/' => { 'value' => 'exit', 'display' => 'Exit' } } selection = InstallGemLocal::Helper.prompt_options( flash_message: InstallGemLocal::Helper.flash_message(title: 'Select Action'), options: options ) unless selection == 'exit' InstallGemLocal::Action.send(selection.to_sym) #InstallGemLocal::Navigation.start end rescue StandardError => e ap e ap 'Something Wrong! Try again!' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
install_gem_local-0.1.11 | lib/install_gem_local/navigation.rb |
install_gem_local-0.1.10 | lib/install_gem_local/navigation.rb |