Class: Tmrw::OpenCommand

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/tmrw/open_command.rb

Instance Method Summary collapse

Instance Method Details

#call(name:) ⇒ Object



7
8
9
10
11
# File 'lib/tmrw/open_command.rb', line 7

def call(name:, **)
  subdomain = name.gsub("/", "-")
  url = "http://#{subdomain}.tomorrowhq.com"
  system("open #{url}")
end