Sha256: 03d4495ea3aae04b3f3f6797f2d84dd239126e6771e1df53f5a3321804c08751
Contents?: true
Size: 849 Bytes
Versions: 2
Compression:
Stored size: 849 Bytes
Contents
require "timber/cli/api" require "timber/cli/installers/root" require "timber/cli/io/messages" require "timber/cli/os_helper" module Timber class CLI module Installers def self.run(api_key, io) io.puts IO::Messages.header, :green io.puts IO::Messages.separator, :green io.puts IO::Messages.contact, :green io.puts IO::Messages.separator, :green io.puts "" if !api_key io.puts IO::Messages.no_api_key_provided case io.ask_yes_no("Open the Timber app in your brower now?") when :yes OSHelper.open(IO::Messages::APP_URL) end else api = API.new(api_key) api.event(:started) io.api = api app = api.application! Root.new(io, api).run(app) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
timber-2.1.0.rc2 | lib/timber/cli/installers.rb |
timber-2.1.0.rc1 | lib/timber/cli/installers.rb |