lib/timber/cli/messages.rb in timber-2.0.2 vs lib/timber/cli/messages.rb in timber-2.0.3
- old
+ new
@@ -15,11 +15,11 @@
WEBSITE_URL = "https://timber.io"
MAX_LENGTH = 80.freeze
def application_details(app)
message = <<-MESSAGE
-Woot! Your API 🔑 is valid. Here are you application details:
+Woot! Your API 🔑 is valid:
Name: #{app.name} (#{app.environment})
Framework: #{app.framework_type}
Platform: #{app.platform_type}
MESSAGE
@@ -41,20 +41,26 @@
message.rstrip
end
def commit_and_deploy_reminder
message = <<-MESSAGE
-Last step!
+Last step! Commit and deploy:
#{colorize("git add config/initializers/timber.rb", :blue)}
#{colorize("git commit -am 'Install Timber'", :blue)}
#{colorize("push and deploy", :blue)} 🚀
MESSAGE
message.rstrip
end
+ def console_url(app)
+message = <<-MESSAGE
+Your console URL: https://app.timber.io/organizations/timber/apps/#{app.slug}/console
+MESSAGE
+ end
+
def contact
message = <<-MESSAGE
Website: #{WEBSITE_URL}
Documentation: #{DOCS_URL}
Support: #{SUPPORT_EMAIL}
@@ -64,27 +70,23 @@
def http_environment_variables(api_key)
message = <<-MESSAGE
Great! Add this variable to your environment:
- export TIMBER_API_KEY="#{api_key}"
+ #{colorize("export TIMBER_API_KEY=\"#{api_key}\"", :blue)}
MESSAGE
message.rstrip
end
def free_data
message = <<-MESSAGE
-Get free data on Timeber!
+As a welcome gift, we've credited your account with ✨ 50mb✨. Get more:
-* Timber URL: https://app.timber.io
* Get ✨ 250mb✨ for tweeting your experience to #{TWITTER_HANDLE}
* Get ✨ 100mb✨ for starring our repo: #{REPO_URL}
-* Get ✨ 50mb✨ for following #{TWITTER_HANDLE} on twitter
-
-(Your account will be credited within 2-3 business days.
- If you do not notice a credit please contact us: #{SUPPORT_EMAIL})
+* Get ✨ 100mb✨ for following #{TWITTER_HANDLE} on twitter
MESSAGE
message.rstrip
end
def header
@@ -99,17 +101,14 @@
message.rstrip
end
def heroku_install(app)
message = <<-MESSAGE
-Now we need to send your logs from Heroku to Timber.
+To send logs from Heroku please run this command in a separate window:
-Please run this command in a separate terminal, return back when complete:
-
#{colorize("heroku drains:add #{app.heroku_drain_url}", :blue)}
-Note: Your Heroku app must be generating logs for this to work.
MESSAGE
message.rstrip
end
def no_api_key_provided
@@ -173,10 +172,10 @@
"\r#{message}" + ("." * remainder)
end
def we_love_you_too
- "💖 We love you too! Let's get to loggin' 🌲"
+ "Thanks! We 💖 you too!"
end
end
end
end
\ No newline at end of file