Module: Weekdone::Cli
- Defined in:
- lib/weekdone/cli.rb,
lib/weekdone/cli/base.rb,
lib/weekdone/cli/output.rb,
lib/weekdone/cli/command.rb,
lib/weekdone/cli/version.rb,
lib/weekdone/cli/credential.rb,
lib/weekdone/cli/command_tag.rb,
lib/weekdone/cli/command_item.rb,
lib/weekdone/cli/command_company.rb,
lib/weekdone/cli/command_objective.rb
Defined Under Namespace
Classes: Command, Company, Credential, Error, Item, Objective, Output, Tag
Constant Summary collapse
- VERSION =
"0.1.2"
Instance Method Summary collapse
Instance Method Details
#build_client ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/weekdone/cli/base.rb', line 6 def build_client client_id = ENV['WEEKDONE_CLIENT_ID'] client_secret = ENV['WEEKDONE_CLIENT_SECRET'] client = Weekdone::Api.new(client_id, client_secret) token_hash = Credential.read_credential client.token_hash = token_hash if not token_hash.nil? client end |