lib/timber/cli/installers.rb in timber-2.1.4 vs lib/timber/cli/installers.rb in timber-2.1.5
- old
+ new
@@ -17,10 +17,37 @@
io.puts IO::Messages.separator, :green
io.puts IO::Messages.contact, :green
io.puts IO::Messages.separator, :green
io.puts ""
+ # if OSHelper.has_git?
+ # if OSHelper.git_master? || !OSHelper.git_clean_working_tree?
+ # io.puts "Before we begin, this installer will make a few simple code changes."
+ # io.puts ""
+
+ # case io.ask_yes_no("Would you like to exit and start over on a clean git branch?")
+ # when :yes
+ # command = "git checkout -b install-timber"
+ # copied = OSHelper.copy_to_clipboard(command)
+
+ # io.puts ""
+ # io.puts "Good idea. Here's a simple git command to make things easier:"
+ # io.puts ""
+ # io.puts " #{IO::ANSI.colorize(command, :blue)}"
+
+ # if copied
+ # io.puts " #{IO::Messages.copied_to_clipboard}"
+ # end
+
+ # io.puts ""
+ # io.puts "Once you've switched branches, run the installer command again."
+ # io.puts ""
+ # return
+ # end
+ # end
+ # end
+
if !api_key
api.event(:no_api_key)
app_url = IO::Messages::APP_URL
@@ -31,10 +58,10 @@
io.puts ""
if OSHelper.can_open?
case io.ask_yes_no("Open #{app_url}?")
when :yes
- puts ""
+ io.puts ""
io.task("Opening #{app_url}") do
OSHelper.open(app_url)
end
when :no
io.puts ""