Class: Rockette::Deployer
- Inherits:
-
Object
- Object
- Rockette::Deployer
- Includes:
- TextHelper
- Defined in:
- lib/rockette/controller/deployer.rb
Overview
Push APEX application to target instance
Instance Method Summary collapse
-
#initialize ⇒ Deployer
constructor
A new instance of Deployer.
- #launch! ⇒ Object
Methods included from TextHelper
#bail, #check_input, #file_not_found, #no_rockette_dir, #padder
Constructor Details
#initialize ⇒ Deployer
Returns a new instance of Deployer.
11 12 13 14 15 |
# File 'lib/rockette/controller/deployer.rb', line 11 def initialize @pastel = Pastel.new @prompt = TTY::Prompt.new @spinner = TTY::Spinner.new end |
Instance Method Details
#launch! ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/rockette/controller/deployer.rb', line 17 def launch! @conf = Psych.load(File.read(CONF)) intro_text # input/action loop loop do actions = { "🛸 Add" => 1, "📝 Update" => 2, "⬅️ Go Back" => 3 } response = @prompt.select("Add application or update an existing application?", actions) break if response == 3 add_app if response == 1 updater if response == 2 end puts end |