Sha256: 9de746a7bda30aac2b24bb7da35b76a9528094f8d0c9d4ca7fb5f9682e879693
Contents?: true
Size: 977 Bytes
Versions: 17
Compression:
Stored size: 977 Bytes
Contents
module IOS class MessageBank attr_reader :configurator def initialize(config) @configurator = config end def show_prompt print " > ".green end def yellow_bang "! ".yellow end def green_bang "! ".green end def red_bang "! ".red end def run_command command, output_command = nil output_command ||= command puts " " + output_command.magenta system command end def done_message puts "" puts "Projeto criado com " + "Sucesso".green puts Dir.pwd if Dir.exists? "Example" Dir.chdir "Example" do puts "Caso deseja abrir o projeto de Exemplo, digite " + "[" + "Y".underlined.yellow + "es]".yellow answer = STDIN.gets.downcase.chomp answer = "yes" if answer == "y" if answer.to_sym == :yes run_command "open 'Example.xcworkspace'" end end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems