Sha256: fe1d009c11def776290357a73db69d36e79877804d7d53bdf17e653af3a5f25e
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
require "thor" require "apple_system_status" module AppleSystemStatus class CLI < Thor desc "fetch", "Fetch apple system status" option :country, desc: "country code. (ex. jp, ca, fr)", default: "us" option :title, desc: "If specified, narrow the service title" option :format, desc: "output format. (ex. plain, json)", default: "plain" def fetch response = AppleSystemStatus::Crawler.new.perform( country: options[:country], title: options[:title], ) puts AppleSystemStatus.format_response(response, options[:format]) end desc "version", "Show apple_system_status version" def version puts AppleSystemStatus::VERSION end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
apple_system_status-0.1.1 | lib/apple_system_status/cli.rb |
apple_system_status-0.1.0 | lib/apple_system_status/cli.rb |
apple_system_status-0.1.0.beta3 | lib/apple_system_status/cli.rb |